aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;