From 105f4a5cb0b96efe77ac4380b483c08637e23a26 Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Tue, 27 Jan 2015 22:07:32 -0500 Subject: [PATCH] Resizable: Whitespace Cleanup (cherry picked from commit 337e4110b0cb60c73bb27be2e2b855a75a0c4b2e) --- tests/unit/resizable/resizable_options.js | 4 ++-- ui/resizable.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5