in partnership with mediatemple

Ticket #978 (closed defect: fixed)

Opened 3 weeks ago

Last modified 3 weeks ago

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.

http://docs12b.mootools.net/Plugins/Drag.Move

Change History

Changed 3 weeks ago by JanK

  • status changed from new to closed
  • resolution set to fixed

thanks, fixed in r1538

Note: See TracTickets for help on using tickets.