From: Oleg Gaidarenko Date: Fri, 13 Nov 2015 14:03:05 +0000 (+0300) Subject: Release: fix revert artefacts X-Git-Tag: 2.2.0~30 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e2af987877c83e5b054e1f9cac1a8534ebed0b18;p=jquery.git Release: fix revert artefacts --- diff --git a/src/deprecated.js b/src/deprecated.js index dfd06826a..c82989007 100644 --- a/src/deprecated.js +++ b/src/deprecated.js @@ -30,5 +30,3 @@ jQuery.fn.andSelf = jQuery.fn.addBack; } ); - - diff --git a/src/wrap.js b/src/wrap.js index e43794448..4d2c3b204 100644 --- a/src/wrap.js +++ b/src/wrap.js @@ -10,9 +10,9 @@ jQuery.fn.extend( { var wrap; if ( jQuery.isFunction( html ) ) { - return this.each(function( i ) { - jQuery( this ).wrapAll( html.call(this, i) ); - }); + return this.each( function( i ) { + jQuery( this ).wrapAll( html.call( this, i ) ); + } ); } if ( this[ 0 ] ) { diff --git a/test/unit/deprecated.js b/test/unit/deprecated.js index a033135bf..9dfd515ce 100644 --- a/test/unit/deprecated.js +++ b/test/unit/deprecated.js @@ -40,8 +40,8 @@ QUnit.test( "delegate/undelegate", function( assert ) { .remove(); } ); if ( jQuery.fn.size ) { - test("size()", function() { - expect(1); - equal( jQuery("#qunit-fixture p").size(), 6, "Get Number of Elements Found" ); + QUnit.test("size()", function( assert ) { + assert.expect( 1 ); + assert.equal( jQuery("#qunit-fixture p").size(), 6, "Get Number of Elements Found" ); }); }