Skip to content

Commit

Permalink
#250: + additional check
Browse files Browse the repository at this point in the history
  • Loading branch information
RubaXa committed Feb 6, 2015
1 parent 4fcb091 commit 7bff435
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,15 @@


_dragStarted: function () {
// Apply effect
_toggleClass(dragEl, this.options.ghostClass, true);
if (rootEl && dragEl) {
// Apply effect
_toggleClass(dragEl, this.options.ghostClass, true);

Sortable.active = this;
Sortable.active = this;

// Drag start event
_dispatchEvent(rootEl, 'start', dragEl, rootEl, oldIndex);
// Drag start event
_dispatchEvent(rootEl, 'start', dragEl, rootEl, oldIndex);
}
},


Expand Down

0 comments on commit 7bff435

Please sign in to comment.