]> source.dussan.org Git - jquery.git/commitdiff
Release: remove revert artefacts
authorOleg Gaidarenko <markelog@gmail.com>
Fri, 13 Nov 2015 13:39:32 +0000 (16:39 +0300)
committerOleg Gaidarenko <markelog@gmail.com>
Fri, 13 Nov 2015 17:04:19 +0000 (20:04 +0300)
src/core/init.js
test/unit/core.js
test/unit/manipulation.js

index 915d992b3c5efce2bf7ad836183d7e356faaf808..c4e1da33dc17e5ceb35f0be3a1126e1f53ee84e9 100644 (file)
@@ -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;
 
index 528d5f593f51f4005a98d4257126511694151105..694f66764472750a16ff187bcbb76e773b9bdbc9 100644 (file)
@@ -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)");
 
index cd9fb21c469f8a20fd7fea6b71e7c3d13e08db7c..3000a83930b177670a00308656766355d9d08fdb 100644 (file)
@@ -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();
        });
 });