Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1641 in a recent build.
  1. #1
    Ext JS Premium Member
    Join Date
    Jul 2009
    Posts
    239
    Vote Rating
    2
    stephen.friedrich will become famous soon enough

      0  

    Default PR4: Minimum Touch 2 App results in JS TypeError

    PR4: Minimum Touch 2 App results in JS TypeError


    This JS error has been driving me nuts in the app I am trying to write.
    For testing I stripped down the code to the minimum runnable example, but still the same JS Error "TypeError: 'undefined' is not an object".
    (Actually my "real" app continues to run after that initial error, but some more strange JS errors occur, so I thought it wise to start the investigation with the first JS error.)

    If I open this using my iPod (iOS 5.0.1) the bug occurs:
    http://eekboom.de/typeerror/index-debug.html (dynamically loading individual source files)
    http://eekboom.de/typeerror/index.html (using minified touch without dynamic loading)
    No errors at all with either Chrome or Safari on the Desktop. I have no idea how to debug this - the "Console" on mobile safari does not give any source file or line number.

    The code is really minimal:
    app.js
    Code:
    Ext.application({    name: 'app',
        views: ['Main'],
        launch: function() {
            Ext.create("app.view.Main");
        }
    });
    Main.js
    Code:
    Ext.define('app.view.Main', {
        extend: 'Ext.Container',
        xtype: 'mainview'
    });
    Please help
    ExtJS 4 plugins:
    varheaders - short/normal/long column header
    clearbutton - mouseover clear button in text field
    Blog: fit4dev
    ExtJS User Group Hamburg

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Thanks you for the test case.

    Sencha Inc

    Jamie Avins

    @jamieavins

  3. #3
    Ext JS Premium Member
    Join Date
    Jul 2009
    Posts
    239
    Vote Rating
    2
    stephen.friedrich will become famous soon enough

      0  

    Default


    Thanks for being so receptive to bug reports!

    In the mean time I have found the cause of the other JS errors I had. This TypeError seems to be harmless: The rest of my app is now running fine.

    Still, of course loading an empty app should be possible without JS errors.
    ExtJS 4 plugins:
    varheaders - short/normal/long column header
    clearbutton - mouseover clear button in text field
    Blog: fit4dev
    ExtJS User Group Hamburg

  4. #4
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Yes it should.

    Sencha Inc

    Jamie Avins

    @jamieavins

  5. #5
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    This was due to a problem with setting the Add To Homescreen icon when it wasn't defined. This has been fixed for the next release.

    Sencha Inc

    Jamie Avins

    @jamieavins

  6. #6
    Ext JS Premium Member
    Join Date
    Jul 2009
    Posts
    239
    Vote Rating
    2
    stephen.friedrich will become famous soon enough

      0  

    Default


    Wow, that was quick. Thanks!

    Is there any debugging trick I could learn?
    I have been trying to find the cause myself, but was completely at a loss: There was no context info in the mobile "console". When I installed a global window.onerror handler and tried to get a stacktrace - there just wasn't one. No bug on the desktop version, so I couldn't use the developer tools of those browsers.
    So, how do you found it so quickly?
    ExtJS 4 plugins:
    varheaders - short/normal/long column header
    clearbutton - mouseover clear button in text field
    Blog: fit4dev
    ExtJS User Group Hamburg

  7. #7
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Weinre is a nice tool, although for this one using an iPad was the key because it often provides more detailed information. I had to go back to the PR4 release as it was already fixed in our HEAD branch.

    Sencha Inc

    Jamie Avins

    @jamieavins

Thread Participants: 1