Ticket #978 (closed defect: fixed)
Plugins/Drag.Move Documentation Error
| Reported by: | davidwalsh | Owned by: | |
|---|---|---|---|
| Type: | defect | Priority: | trivial |
| Milestone: | Mootools version 1.2 | Component: | Plugins |
| Keywords: | drag, move, documentation | Cc: |
Description
Hello,
Just wanted to pass on that I found an oversight in a Plugins/Drag.Move documentation example
var myDrag = new Drag.Move('draggable', {
droppables: '.droppable',
onDrop: function(element, droppable){
if (!droppable) console.log(element + ' dropped on nothing');
else console.log(element + ' dropped on ' + droppable);
}
onEnter: function(element, droppable){
console.log(element + ' entered ' + droppable);
}
onLeave: function(element, droppable){
console.log(element + ' left ' + droppable);
}
});
The above example is missing "," after the onDrop, onEnter, and onLeave options.
Change History
Note: See
TracTickets for help on using
tickets.