Sortable - Checking if helper exists

This commit is contained in:
Eduardo Lundgren 2008-10-28 06:35:01 +00:00
parent 8d11141859
commit f69197bcec

View File

@ -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--) {