1. #1
    Sencha User riyaad's Avatar
    Join Date
    Jul 2011
    Location
    Cape Town
    Posts
    240
    Vote Rating
    1
    Answers
    6
    riyaad is on a distinguished road

      0  

    Default Unanswered: SelectField override plugin causing errors on device

    Unanswered: SelectField override plugin causing errors on device


    Hi guys,

    After having the same selectfield (initialize, change) issue as described here, I used their override and plugged it into my app. The app works 100% in the browser and all console logs are as expected. I package the app and everything behaves as expected as well. I am however getting the following error when the packaged app runs on my device (Android v4). Note this only happens when the app loads!

    Code:
     Uncaught TypeError: Object #<Object> has no method 'define':1
    My app.json file

    Code:
    ..
        "js": [
            {
                "path": "cordova-2.5.0.js",
                "update": "delta"
            },
            {
                "path": "touch/sencha-touch-all.js",
                "x-bootstrap": true
            },
            {
                "path": "app/override/Select.js",
                "update": "delta"
            },
            {
                "path": "app.js",
                "bundle": true,  
                "update": "delta"
            }
        ],
    ...
    My app.js file

    Code:
    ...
        requires: [
            'Ext.MessageBox',
            'MyApp.override.Select'
        ],
    ...
    From what I can see, it would seem that the packaged version changes the sequence of the libraries at load time. Could anyone assist regarding this?

    Appreciated.

    Regards
    R

  2. #2
    Sencha User riyaad's Avatar
    Join Date
    Jul 2011
    Location
    Cape Town
    Posts
    240
    Vote Rating
    1
    Answers
    6
    riyaad is on a distinguished road

      0  

    Default Anyone out there?

    Anyone out there?


    Any help on this would be appreciated - thank you