From: Alexander Schmitz Date: Wed, 31 Jul 2013 21:08:30 +0000 (-0400) Subject: Widget Factory: Fix multiple var statements in test X-Git-Tag: 1.11.0-beta.1~274 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1040%2Fhead;p=jquery-ui.git Widget Factory: Fix multiple var statements in test --- diff --git a/tests/unit/widget/widget_core.js b/tests/unit/widget/widget_core.js index aff07cc35..3db79ec06 100644 --- a/tests/unit/widget/widget_core.js +++ b/tests/unit/widget/widget_core.js @@ -617,9 +617,9 @@ test( ".disable()", function() { test( ".widget() - base", function() { expect( 2 ); var constructor = $.widget( "ui.testWidget", { - _create: function() {} - }); - var div = $( "
" ).testWidget(); + _create: function() {} + }), + div = $( "
" ).testWidget(); deepEqual( div[0], div.testWidget( "widget" )[0]); deepEqual( constructor, $.ui.testWidget, "$.widget returns the constructor" ); });