From: Mike Sherov Date: Wed, 28 Jan 2015 03:07:32 +0000 (-0500) Subject: Resizable: Whitespace Cleanup X-Git-Tag: 1.11.3~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=105f4a5cb0b96efe77ac4380b483c08637e23a26;p=jquery-ui.git Resizable: Whitespace Cleanup (cherry picked from commit 337e4110b0cb60c73bb27be2e2b855a75a0c4b2e) --- diff --git a/tests/unit/resizable/resizable_options.js b/tests/unit/resizable/resizable_options.js index c46801bc5..9b364f5d3 100644 --- a/tests/unit/resizable/resizable_options.js +++ b/tests/unit/resizable/resizable_options.js @@ -237,7 +237,7 @@ test( "containment - immediate parent", function() { test("grid", function() { expect(4); - var handle = ".ui-resizable-se", target = $("#resizable1").resizable({ handles: "all", grid: [0, 20] }); + var handle = ".ui-resizable-se", target = $("#resizable1").resizable({ handles: "all", grid: [ 0, 20 ] }); TestHelpers.resizable.drag(handle, 3, 9); equal( target.width(), 103, "compare width"); @@ -265,7 +265,7 @@ test("grid (min/max dimensions)", function() { test("grid (wrapped)", function() { expect(4); - var handle = ".ui-resizable-se", target = $("#resizable2").resizable({ handles: "all", grid: [0, 20] }); + var handle = ".ui-resizable-se", target = $("#resizable2").resizable({ handles: "all", grid: [ 0, 20 ] }); TestHelpers.resizable.drag(handle, 3, 9); equal( target.width(), 103, "compare width"); diff --git a/ui/resizable.js b/ui/resizable.js index 8ec986f4f..6cfd99939 100644 --- a/ui/resizable.js +++ b/ui/resizable.js @@ -943,7 +943,7 @@ $.ui.plugin.add( "resizable", "containment", { } } - if ( !continueResize ){ + if ( !continueResize ) { that.position.left = that.prevPosition.left; that.position.top = that.prevPosition.top; that.size.width = that.prevSize.width;