Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1278 in a recent build.
  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    66
    Vote Rating
    0
    stirucherai is on a distinguished road

      0  

    Default Drag and Drop example does not work

    The drag and drop example attached with PR3 (even PR1) does not work. Following is the error

    }
    this.mgr.on({

    sencha-touch-all-debug-w-comments.js:48102 Uncaught TypeError: Cannot call method 'on' of undefined



    dragstart: this.onDragStart,
    scope: this
    });
    this.disabled = false;


    Error is on 48102 (sencha-touch-all-debug-w-comments.js)


  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    38,583
    Vote Rating
    1136
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default

    I reported this as a bug. I have done this and it works in an app I am building:

    Code:
            Ext.create('Ext.util.Draggable', {
                element : el
            }, {
                revert : true
            });
    constraints are off but I can drag it around with no errors.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1