jeudi 30 octobre 2014

[NOREPRO] sencha touch store memory leaks



  1. Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.







  2. Default sencha touch store memory leaks



    sencha touch store memory leaks





    when i use dynamic store, not config storeId and autoDestroy then

    store will increase and no method destroy.

    so store memory leaks is happen.


    guys help me?



    Code:



    pushButton: { tap: function() {
    //console.log('pushButton');
    var mainView = this.getMainView();
    //mainView.push({
    // xtype: 'subview'
    //});
    //var m=Ext.widget('subview');




    var m = Ext.create('MyApp.view.SubView');
    // if(m.getStore()!=null){
    // Ext.destory(m.getStore());
    //}
    //console.log(m);
    var store = Ext.create('Ext.data.Store', {
    //storeId:'ggg',
    //autoDestroy:true,
    fields: [{
    name: 'firstName',
    type: 'string'
    }, {
    name: 'lastName',
    type: 'string'
    }],
    data: [{
    firstName: new Date(),
    lastName: "Spencer"
    }, {
    firstName: "Tommy",
    lastName: "Maintz"
    }, {
    firstName: "Aaron",
    lastName: "Conran"
    }, {
    firstName: "Jamie",
    lastName: "Avins"
    }]
    });
    m.setStore(store);


    mainView.push(m);
    console.log(Ext.StoreManager);
    //console.log(Ext.ComponentManager);
    }
    }

    无标题.jpg







    Last edited by steven_jiangxf; Today at 6:44 PM.


    Reason: add test case











[NOREPRO] sencha touch store memory leaks

Aucun commentaire:

Enregistrer un commentaire