API 3.7 - Dnd Movable AMD Style

Discussion created by cspurlock on Oct 30, 2013
Latest reply on Nov 1, 2013 by enigma2522
I am using a movable object in my application.  Here is the code:
dnd = new Moveable(dom.byId("divDragPanel"), { handle: "imgDrag", skip: true });

I want to set up an event listener for the onMove event of the Moveable object.

If I set it up the legacy way it works fine:
    dojo.connect(dnd, "onMove", function (e) {
        //do something

When I try to set it up AMD style it does not work:
    on(dnd, "onMove", function (e) {
         //do something

Any ideas?