1. #1
    Sencha User joostvanhassel's Avatar
    Join Date
    Jan 2012
    Location
    Rotterdam, The Netherlands
    Posts
    102
    Answers
    1
    Vote Rating
    1
    joostvanhassel is on a distinguished road

      0  

    Default Unanswered: Pull to Refresh & Sencha CMD

    Unanswered: Pull to Refresh & Sencha CMD


    The pull to refresh plugin doesn't seem to work on devices when I compile & minify all JS files from Architect to one JS file. This is similar (but not exactly the same) as the issue found here

    If I run the app (either in browser or on device using PhoneGap) uncompiled & not minified, the plugin works great, if I compile & minify everything into one JS file using Sencha CMD, a JS error occurs in app.js:
    Uncaught TypeError: Cannot call method 'substring' of undefined

    If I remove the PullToRefresh plugin from my code, everything works just fine after compiling & minifying. The plugin itself is setup very basic: all default settings, with a refreshFn containing just a simple console.log('refresh called');

    full error as seen in console Google Chrome:
    Code:
    Uncaught TypeError: Cannot call method 'substring' of undefined app.js:1
    Ext.ClassManager.parseNamespace app.js:1
    Ext.ClassManager.get app.js:1
    Ext.ClassManager.instantiate app.js:1
    Ext.ClassManager.instantiateByAlias app.js:1
    Ext.apply.factory app.js:1
    Ext.define.applyPlugins app.js:1
    j app.js:1
    b.implement.initConfig app.js:1
    Ext.define.constructor app.js:1
    b.implement.callParent app.js:1
    Ext.define.constructor app.js:1
    b.implement.callParent app.js:1
    Ext.define.constructor app.js:1
    b.implement.callParent app.js:1
    Ext.define.constructor app.js:1
    f app.js:1
    (anonymous function)
    Ext.ClassManager.instantiate app.js:1
    Ext.ClassManager.instantiateByAlias app.js:1
    Ext.apply.factory app.js:1
    Ext.define.factoryItem app.js:1
    Ext.define.add app.js:1
    Ext.define.applyItems app.js:1
    j app.js:1
    (anonymous function) app.js:1
    Ext.define.applyActiveItem app.js:1
    (anonymous function) app.js:1
    b.implement.initConfig app.js:1
    Ext.define.constructor app.js:1
    b.implement.callParent app.js:1
    Ext.define.constructor app.js:1
    f app.js:1
    (anonymous function)
    Ext.ClassManager.instantiate app.js:1
    Ext.ClassManager.instantiateByAlias app.js:1
    Ext.apply.factory app.js:1
    Ext.define.factoryItem app.js:1
    Ext.define.add app.js:1
    Ext.define.applyItems app.js:1
    j app.js:1
    (anonymous function) app.js:1
    Ext.define.applyActiveItem app.js:1
    (anonymous function) app.js:1
    b.implement.initConfig app.js:1
    Ext.define.constructor app.js:1
    b.implement.callParent app.js:1
    Ext.define.constructor app.js:1
    f app.js:1
    (anonymous function)
    Ext.ClassManager.instantiate app.js:1
    Ext.ClassManager.instantiateByAlias app.js:1
    Ext.apply.factory app.js:1
    Ext.define.factoryItem app.js:1
    Ext.define.add app.js:1
    Ext.define.applyItems app.js:1
    j app.js:1
    (anonymous function) app.js:1
    Ext.define.applyActiveItem app.js:1
    (anonymous function) app.js:1
    b.implement.initConfig app.js:1
    Ext.define.constructor app.js:1
    b.implement.callParent app.js:1
    Ext.define.constructor app.js:1
    f app.js:1
    (anonymous function)
    Ext.ClassManager.instantiate app.js:1
    Ext.ClassManager.instantiateByAlias app.js:1
    Ext.apply.factory app.js:1
    Ext.define.factoryItem app.js:1
    Ext.define.add app.js:1
    Ext.define.applyItems app.js:1
    j app.js:1
    (anonymous function) app.js:1
    Ext.define.applyActiveItem app.js:1
    (anonymous function) app.js:1
    b.implement.initConfig app.js:1
    Ext.define.constructor app.js:1
    b.implement.callParent app.js:1
    Ext.define.constructor app.js:1
    f app.js:1
    (anonymous function)
    Ext.ClassManager.instantiate app.js:1
    Ext.ClassManager.instantiateByAlias app.js:1
    Ext.apply.factory app.js:1
    Ext.define.factoryItem app.js:1
    Ext.define.add app.js:1
    Ext.define.applyItems app.js:1
    j app.js:1
    (anonymous function) app.js:1
    Ext.define.applyActiveItem app.js:1
    (anonymous function) app.js:1
    b.implement.initConfig app.js:1
    Ext.define.constructor app.js:1
    b.implement.callParent app.js:1
    Ext.define.constructor app.js:1
    f app.js:1
    (anonymous function)
    Ext.ClassManager.instantiate app.js:1
    (anonymous function) app.js:1
    Ext.application.launch app.js:1
    Ext.define.onDependenciesLoaded app.js:1
    Ext.apply.require app.js:1
    (anonymous function) app.js:1
    Ext.define.loadControllerDependencies app.js:1
    Ext.apply.require app.js:1
    (anonymous function) app.js:1
    Ext.define.onProfilesLoaded app.js:1
    Ext.apply.require app.js:1
    (anonymous function) app.js:1
    (anonymous function) app.js:1
    Ext.apply.require app.js:1
    (anonymous function) app.js:1
    Ext.define.constructor app.js:1
    f app.js:1
    b.onReady app.js:1
    Ext.apply.onDocumentReady app.js:1
    o app.js:1
    Ext.apply.onReady app.js:1
    Ext.onReady app.js:1
    g app.js:1
    Ext.define.doAddListener app.js:1
    Ext.define.changeListener app.js:1
    Ext.define.addListener app.js:1
    (anonymous function) app.js:1
    (anonymous function) app.js:1
    Ext.apply.require app.js:1
    (anonymous function) app.js:1
    (anonymous function) app.js:1
    b app.js:1
    h app.js:1
    Ext.apply.factoryConfig app.js:1
    b app.js:1
    h app.js:1
    Ext.apply.factoryConfig app.js:1
    b app.js:1
    h app.js:1
    Ext.apply.factoryConfig app.js:1
    b app.js:1
    h app.js:1
    (anonymous function) app.js:1
    Ext.apply.factoryConfig app.js:1
    (anonymous function) app.js:1
    Ext.apply.require app.js:1
    (anonymous function) app.js:1
    Ext.apply.factoryConfig app.js:1
    b app.js:1
    h app.js:1
    (anonymous function) app.js:1
    Ext.apply.factoryConfig app.js:1
    (anonymous function) app.js:1
    Ext.apply.require app.js:1
    (anonymous function) app.js:1
    Ext.apply.factoryConfig app.js:1
    b app.js:1
    h app.js:1
    b app.js:1
    h app.js:1
    (anonymous function) app.js:1
    Ext.apply.factoryConfig app.js:1
    (anonymous function) app.js:1
    Ext.apply.require app.js:1
    (anonymous function) app.js:1
    Ext.apply.factoryConfig app.js:1
    b app.js:1
    h app.js:1
    (anonymous function) app.js:1
    Ext.apply.factoryConfig app.js:1
    (anonymous function) app.js:1
    Ext.apply.require app.js:1
    (anonymous function) app.js:1
    Ext.apply.factoryConfig app.js:1
    b app.js:1
    h app.js:1
    (anonymous function) app.js:1
    Ext.apply.factoryConfig app.js:1
    (anonymous function) app.js:1
    Ext.apply.require app.js:1
    (anonymous function) app.js:1
    Ext.apply.factoryConfig app.js:1
    b app.js:1
    h app.js:1
    (anonymous function) app.js:1
    Ext.apply.factoryConfig app.js:1
    (anonymous function) app.js:1
    Ext.apply.require app.js:1
    (anonymous function) app.js:1
    Ext.apply.factoryConfig app.js:1
    b app.js:1
    h app.js:1
    (anonymous function) app.js:1
    b app.js:1
    h app.js:1
    b app.js:1
    h app.js:1
    (anonymous function) app.js:1
    Ext.apply.factoryConfig app.js:1
    (anonymous function) app.js:1
    Ext.apply.require app.js:1
    (anonymous function) app.js:1
    Ext.apply.factoryConfig app.js:1
    (As the file is minified, everything is on one line; this makes it hard to debug as Chrome just gives the linenumber (1) the problem occurs on)

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,756
    Answers
    3462
    Vote Rating
    828
    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


    Did you require the plugin?
    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.

  3. #3
    Sencha User joostvanhassel's Avatar
    Join Date
    Jan 2012
    Location
    Rotterdam, The Netherlands
    Posts
    102
    Answers
    1
    Vote Rating
    1
    joostvanhassel is on a distinguished road

      0  

    Default


    If I add 'Ext.plugin.PullRefresh' to the 'requires' property on the Application node in de project inspector, this does not solve the problem unfortunately.

    The plugin works on Chrome and on Android devices (using phonegap, just as the iOS app).

  4. #4
    Sencha User
    Join Date
    Jun 2013
    Posts
    1
    Vote Rating
    0
    hamzhk15 is on a distinguished road

      0  

    Default Have same problem

    Have same problem


    Did you find any solution? because i am facing the same problem.
    If i remove pull to refresh plugin form the list view, everything work well!

    I use sencha 2.3.0.
    Please anyone have a solution!!!!

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi