mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Dialog: Fix code style
This commit is contained in:
parent
d2ce363200
commit
4e39014803
@ -34,7 +34,7 @@ return $.extend( helper, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
shouldResize: function( assert, element, dw, dh, msg ) {
|
shouldResize: function( assert, element, dw, dh, msg ) {
|
||||||
var actualDH, actualDW, heightAfter, widthAfter
|
var actualDH, actualDW, heightAfter, widthAfter,
|
||||||
d = element.dialog( "widget" ),
|
d = element.dialog( "widget" ),
|
||||||
handle = $( ".ui-resizable-se", d ),
|
handle = $( ".ui-resizable-se", d ),
|
||||||
heightBefore = element.height(),
|
heightBefore = element.height(),
|
||||||
@ -52,7 +52,7 @@ return $.extend( helper, {
|
|||||||
|
|
||||||
// TODO: Switch to assert.close().
|
// TODO: Switch to assert.close().
|
||||||
// Also change the testDrag() helper.
|
// Also change the testDrag() helper.
|
||||||
assert.ok( Math.abs(actualDH - dh) <= 1 && Math.abs(actualDW - dw) <= 1, "resized[50, 50] " + msg );
|
assert.ok( Math.abs( actualDH - dh ) <= 1 && Math.abs( actualDW - dw ) <= 1, "resized[50, 50] " + msg );
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user