Skip to content

Commit 105f4a5

Browse files
mikesherovscottgonzalez
authored andcommitted
Resizable: Whitespace Cleanup
(cherry picked from commit 337e411)
1 parent da67914 commit 105f4a5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/unit/resizable/resizable_options.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ test( "containment - immediate parent", function() {
237237
test("grid", function() {
238238
expect(4);
239239

240-
var handle = ".ui-resizable-se", target = $("#resizable1").resizable({ handles: "all", grid: [0, 20] });
240+
var handle = ".ui-resizable-se", target = $("#resizable1").resizable({ handles: "all", grid: [ 0, 20 ] });
241241

242242
TestHelpers.resizable.drag(handle, 3, 9);
243243
equal( target.width(), 103, "compare width");
@@ -265,7 +265,7 @@ test("grid (min/max dimensions)", function() {
265265
test("grid (wrapped)", function() {
266266
expect(4);
267267

268-
var handle = ".ui-resizable-se", target = $("#resizable2").resizable({ handles: "all", grid: [0, 20] });
268+
var handle = ".ui-resizable-se", target = $("#resizable2").resizable({ handles: "all", grid: [ 0, 20 ] });
269269

270270
TestHelpers.resizable.drag(handle, 3, 9);
271271
equal( target.width(), 103, "compare width");

ui/resizable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ $.ui.plugin.add( "resizable", "containment", {
943943
}
944944
}
945945

946-
if ( !continueResize ){
946+
if ( !continueResize ) {
947947
that.position.left = that.prevPosition.left;
948948
that.position.top = that.prevPosition.top;
949949
that.size.width = that.prevSize.width;

0 commit comments

Comments
 (0)