Widget Factory: Fix multiple var statements in test

This commit is contained in:
Alexander Schmitz 2013-07-31 17:08:30 -04:00
parent c0ab71056b
commit 787d607f8e

View File

@ -617,9 +617,9 @@ test( ".disable()", function() {
test( ".widget() - base", function() {
expect( 2 );
var constructor = $.widget( "ui.testWidget", {
_create: function() {}
});
var div = $( "<div>" ).testWidget();
_create: function() {}
}),
div = $( "<div>" ).testWidget();
deepEqual( div[0], div.testWidget( "widget" )[0]);
deepEqual( constructor, $.ui.testWidget, "$.widget returns the constructor" );
});