1. #1
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    162
    Answers
    7
    Vote Rating
    2
    UbuntuPenguin is on a distinguished road

      0  

    Default Answered: Uncaught TypeError: Cannot call method 'apply' of undefined

    Answered: Uncaught TypeError: Cannot call method 'apply' of undefined


    I have this error popping up in my app, I have tried investigating the usual suspects but to no avail. The stack only shows the Sencha framework line numbers, I was wondering if there was anyway I could find out where in my code, or higher up in the stack where the error was being caused ?

    Any help is greatly appreciated.

  2. That is usually a typo in your code for a listener. So if you have something like

    Code:
    cmp.on('someEvent', 'myhandler');
    myHandler cannot be resolved. This goes for the listeners config, control config on a container or controller.

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,704
    Answers
    3356
    Vote Rating
    750
    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

      1  

    Default


    That is usually a typo in your code for a listener. So if you have something like

    Code:
    cmp.on('someEvent', 'myhandler');
    myHandler cannot be resolved. This goes for the listeners config, control config on a container or controller.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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.

  4. #3
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    162
    Answers
    7
    Vote Rating
    2
    UbuntuPenguin is on a distinguished road

      0  

    Default


    That was the answer. I had the following control in one of my controllers

    Code:
        control : {
           somecomponent : {
                  tap : 'somefunctionthatdoesntexistonmycontroller'
         }
    }
    and of course it choked. Maybe in a later release we could get some more information on where it was in the users code the application choked ?

  5. #4
    Sencha User
    Join Date
    Mar 2012
    Posts
    9
    Vote Rating
    0
    danrockstheplanet is on a distinguished road

      0  

    Default


    +1 on later release including more information. I just burned half a day trying to track this down.

  6. #5
    Sencha User
    Join Date
    Oct 2012
    Posts
    4
    Vote Rating
    0
    taar1 is on a distinguished road

      0  

    Default same problem, no solution yet

    same problem, no solution yet


    I have the same error like mentioned above. But I couldn't find a solution yet. I followed the instructional video at http://docs.sencha.com/touch/2-0/#!/guide/list closely and double-, even triple checked everything for typos.

    But still, whenever I click on the "arrow" button in a list entry I get this error:

    Not sure what I'm doing wrong here.
    Any other hints what might cause this error?

  7. #6
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,704
    Answers
    3356
    Vote Rating
    750
    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


    Means the method could not be resolved.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar