1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    4
    Vote Rating
    0
    lukeasrodgers is on a distinguished road

      0  

    Default Possible bug with list prepareData in production app

    Possible bug with list prepareData in production app


    When compiling a sencha touch 2.1 app for production (sencha app build production) a list component that I'm using is missing its prepareData method in the minified js.

    In dev, the following command in the dev console returns the right code for `prepareData`: Ext.getCmp('mylist').prepareData

    In the compiled app, it returns the default implementation: function (c,b,a){return c}

    I'm using sencha Cmd v3.1.0.256

    Possibly related to ticket TOUCH-1176

    ---edit---
    The correct prepareData method is available on the component's config property (e.g. `Ext.getCmp('mylist').config.prepareData` returns the right function.

  2. #2
    Sencha User raskri's Avatar
    Join Date
    Dec 2008
    Location
    Stavanger, Norway
    Posts
    73
    Vote Rating
    0
    raskri is on a distinguished road

      0  

    Default I'm getting this as well for data view

    I'm getting this as well for data view


    The same thing is happening when using a data view...

    Any workarounds?

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    4
    Vote Rating
    0
    lukeasrodgers is on a distinguished road

      0  

    Default


    No workarounds. Also the problem appears to persist in sencha touch 2.2.0 release candidate.

    sencha 2.1.1 dev app - http://lukerodgers.ca/senchalist/ (prepareData mostly works)
    sencha 2.1.1 prod app - http://lukerodgers.ca/senchalist/bui...pp/production/ (prepareData broken)

    sencha 2.2.0 dev app - http://www.lukerodgers.ca/senchalist-2.2.0/ (prepareData mostly works)
    sencha 2.2.0 prod app - http://www.lukerodgers.ca/senchalist...pp/production/ (prepareData broken)

    I say "mostly works" because the string my prepareData method is appending ("prepped") sometimes appears once, twice, three times, after refreshing.

  4. #4
    Sencha User
    Join Date
    Jul 2012
    Posts
    4
    Vote Rating
    0
    lukeasrodgers is on a distinguished road

      0  

    Default Adding correctly formatted bug report for this issue

    Adding correctly formatted bug report for this issue


    REQUIRED INFORMATION


    Sencha Cmd version(s) tested:
    • Sencha Cmd v3.1.0.256
    • Sencha Cmd v3.1.1.274
    Operating System:
    • OSX Mountain Lion
    Framework used:
    • Sencha Touch 2.1.1
    • Sencha Touch 2.2.0 (RC)
    Description:
    • When compiling a sencha touch 2.1.1 app for production (sencha app build production) a list component that I'm using is missing its prepareData method in the minified js
    Steps to reproduce the problem:

    Generate a new Sencha Touch app:

    Code:
    sencha -sdk ../senchalist/touch-2.1.1/ generate app MyApp .
    Add a list component to view/Main.js:

    Code:
    {
      title: 'My List',
      xtype: 'list',
      iconCls: 'action',
      data: [{id: 1, name: 'Foo'}, {id: 2, name: 'Bar'}],
      itemTpl: 'id: {id}, name: {name}',
      prepareData: function(data) {
        data.name += ' prepped';
        return data;
      }
    }
    Build app:

    Code:
    sencha app build
    Code:
    sencha -debug app build production > log.txt
    Ouput:
    See log file here: http://lukerodgers.ca/senchalist/log.txt


    The result that was expected:
    • Data in list view should be look like this: "id: 1, name: Foo prepped".
    The result that occurs instead:
    • Data in list view is correctly formatted in uncompiled, dev app, but is missing the "prepped" string in the production app, which should have been added by the list's prepareData method.
    HELPFUL INFORMATION

    See these URLs for live test cases:
    http://lukerodgers.ca/senchalist/
    http://lukerodgers.ca/senchalist/bui...pp/production/


    Debugging already done:

    None.
    Last edited by lukeasrodgers; 11 Apr 2013 at 10:34 AM. Reason: bug persists with Sencha Cmd v3.1.1.274

  5. #5
    Sencha User raskri's Avatar
    Join Date
    Dec 2008
    Location
    Stavanger, Norway
    Posts
    73
    Vote Rating
    0
    raskri is on a distinguished road

      0  

    Default Are anyone looking into this?

    Are anyone looking into this?


    I really need my prepareData function to work!

    Any hints in how to pass this problem. I really need to be finishing up my app soon.

  6. #6
    Sencha User raskri's Avatar
    Join Date
    Dec 2008
    Location
    Stavanger, Norway
    Posts
    73
    Vote Rating
    0
    raskri is on a distinguished road

      0  

    Default JUST A BUMP

    JUST A BUMP



Thread Participants: 1

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