daily pastebin goal
27%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // add a draggable observer to the page which will fun everytime an element is dragged.
  2. Draggables.addObserver({
  3.    onStart: function(eventName, draggable, event) {
  4.       this.dragElement = draggable.element;  // cache the element currently being dragged
  5.    }
  6. // sortable onupdate
  7. onUpdate: function(container){
  8.   if (this.dragElement.ancestors().indexOf(container) != -1) {
  9.      // onUpdate firing for the sortable that the element was dropped in
  10.   }
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top