Threaded View

    Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    May 2008
    Posts
    32
    Vote Rating
    0
    Caius Caesar is on a distinguished road

      0  

    Default EXT 4.1.3: error when removing nodes from tree

    EXT 4.1.3: error when removing nodes from tree


    I try to remove a node from a tree

    node = tree.getRootNode().findChild("id", "myId", true);
    node.remove(true);

    This produces an error in Ext.data.Model (the red line)
    The error occurs because store is of type TreeStore, and TreeStore does not have a remove function. It inherits from AbstractStore and the remove function is added in Store.When I remove the boolean (node.remove(false)) then there's no error, but the node is kept in the store...

    This error did not occur in Ext 4.1.1

    callback = function(operation)
    {
    args = [me, operation];
    if (operation.wasSuccessful()) {
    for(storeCount = stores.length; i < storeCount; i++)
    { store = stores[i];
    store.remove(me, true);
    if (isNotPhantom) {
    store.fireEvent('write', store, operation);
    }
    }
    me.clearListeners();
    Ext.callback(options.success, scope, args);
    } else
    {
    Ext.callback(options.failure, scope, args);
    }
    Ext.callback(options.callback, scope, args);
    };


    Any help would be appreciatedCaius Caesar
    Last edited by Caius Caesar; 24 Jan 2013 at 7:04 AM. Reason: missing linebreaks

Thread Participants: 2

Tags for this Thread

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