From 3655260866cdcfe42a1117bfb9603144c9e4d829 Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Fri, 13 Nov 2015 16:39:32 +0300 Subject: [PATCH] Release: remove revert artefacts --- src/core/init.js | 4 ++-- test/unit/core.js | 2 +- test/unit/manipulation.js | 2 +- 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( "
", 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(); }); }); -- 2.39.5