Skip to content
Permalink
Browse files

Sortable - Checking if helper exists

  • Loading branch information...
eduardolundgren committed Oct 28, 2008
1 parent 8d11141 commit f69197bcec073b6f73b26e93e5fc407b4c5e485e
Showing with 4 additions and 3 deletions.
  1. +4 −3 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--) {

0 comments on commit f69197b

Please sign in to comment.
You can’t perform that action at this time.