From 337e4110b0cb60c73bb27be2e2b855a75a0c4b2e Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Tue, 27 Jan 2015 22:07:32 -0500 Subject: [PATCH] Resizable: Whitespace Cleanup --- 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 f038ef0fa..c2d031fe7 100644 --- a/tests/unit/resizable/resizable_options.js +++ b/tests/unit/resizable/resizable_options.js @@ -236,7 +236,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"); @@ -264,7 +264,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 7eb747e76..d1f7f50f6 100644 --- a/ui/resizable.js +++ b/ui/resizable.js @@ -948,7 +948,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