mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Widget Factory: Fix multiple var statements in test
This commit is contained in:
parent
c0ab71056b
commit
787d607f8e
@ -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" );
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user