aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.sortable.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ui.sortable.js')
-rw-r--r--ui/ui.sortable.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/ui.sortable.js b/ui/ui.sortable.js
index 4178cdcd6..52e8b6578 100644
--- a/ui/ui.sortable.js
+++ b/ui/ui.sortable.js
@@ -628,9 +628,10 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
this.positionAbs = this._convertPositionTo("absolute");
//Set the helper's position
- this.helper[0].style.left = this.position.left+'px';
- this.helper[0].style.top = this.position.top+'px';
-
+ if (this.helper) {
+ this.helper[0].style.left = this.position.left+'px';
+ this.helper[0].style.top = this.position.top+'px';
+ }
//Rearrange
for (var i = this.items.length - 1; i >= 0; i--) {