r843 - trunk/ui
r843 - trunk/ui
Author: eduardolundgren
Date: Mon Oct 27 23:35:01 2008
New Revision: 843
Modified:
trunk/ui/ui.sortable.js
Log:
Sortable - Checking if helper exists
Modified: trunk/ui/ui.sortable.js
==============================================================================
--- trunk/ui/ui.sortable.js (original)
+++ trunk/ui/ui.sortable.js Mon Oct 27 23:35:01 2008
@@ -628,9 +628,10 @@
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--) {