diff options
author | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-10-28 06:35:01 +0000 |
---|---|---|
committer | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-10-28 06:35:01 +0000 |
commit | f69197bcec073b6f73b26e93e5fc407b4c5e485e (patch) | |
tree | ccd8bb4c9c5e8ab1490f5450aff96616dab27c38 /ui | |
parent | 8d11141859df2366aadc87f251ec4ff373f6d7af (diff) | |
download | jquery-ui-f69197bcec073b6f73b26e93e5fc407b4c5e485e.tar.gz jquery-ui-f69197bcec073b6f73b26e93e5fc407b4c5e485e.zip |
Sortable - Checking if helper exists
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.sortable.js | 7 |
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--) { |