aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2015-01-27 22:07:32 -0500
committerScott González <scott.gonzalez@gmail.com>2015-02-09 12:05:56 -0500
commit105f4a5cb0b96efe77ac4380b483c08637e23a26 (patch)
tree9742cc016b5f9a98be0347e0183a5c296d71be11
parentda67914465e7e82ff620c9bbd51dfa9d0236f3df (diff)
downloadjquery-ui-105f4a5cb0b96efe77ac4380b483c08637e23a26.tar.gz
jquery-ui-105f4a5cb0b96efe77ac4380b483c08637e23a26.zip
Resizable: Whitespace Cleanup
(cherry picked from commit 337e4110b0cb60c73bb27be2e2b855a75a0c4b2e)
-rw-r--r--tests/unit/resizable/resizable_options.js4
-rw-r--r--ui/resizable.js2
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;