aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2015-11-13 16:39:32 +0300
committerOleg Gaidarenko <markelog@gmail.com>2015-11-13 20:04:19 +0300
commit3655260866cdcfe42a1117bfb9603144c9e4d829 (patch)
tree60f3f8b6128d5f8c80093144f232ae588aee0332
parent793925ff3be0a185ba5d2c733252eac324fb3cd5 (diff)
downloadjquery-3655260866cdcfe42a1117bfb9603144c9e4d829.tar.gz
jquery-3655260866cdcfe42a1117bfb9603144c9e4d829.zip
Release: remove revert artefacts
-rw-r--r--src/core/init.js4
-rw-r--r--test/unit/core.js2
-rw-r--r--test/unit/manipulation.js2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/core/init.js b/src/core/init.js
index 915d992b3..c4e1da33d 100644
--- a/src/core/init.js
+++ b/src/core/init.js
@@ -80,7 +80,7 @@ var rootjQuery,
// Inject the element directly into the jQuery object
this.length = 1;
- this[0] = elem;
+ this[ 0 ] = elem;
}
this.context = document;
@@ -100,7 +100,7 @@ var rootjQuery,
// HANDLE: $(DOMElement)
} else if ( selector.nodeType ) {
- this.context = this[0] = selector;
+ this.context = this[ 0 ] = selector;
this.length = 1;
return this;
diff --git a/test/unit/core.js b/test/unit/core.js
index 528d5f593..694f66764 100644
--- a/test/unit/core.js
+++ b/test/unit/core.js
@@ -1479,7 +1479,7 @@ QUnit.test("jQuery.parseHTML", function( assert ) {
assert.equal( jQuery.parseHTML(), null, "Nothing in, null out." );
assert.equal( jQuery.parseHTML( null ), null, "Null in, null out." );
assert.equal( jQuery.parseHTML( "" ), null, "Empty string in, null out." );
- throws(function() {
+ assert.throws(function() {
jQuery.parseHTML( "<div></div>", document.getElementById("form") );
}, "Passing an element as the context raises an exception (context should be a document)");
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index cd9fb21c4..3000a8393 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -2701,6 +2701,6 @@ QUnit.test( "Insert script with data-URI (gh-1887)", 1, function( assert ) {
assert.ok( true, "data-URI script is not supported by this environment" );
}
- start();
+ done();
});
});