This issue duplicates another issue.
  1. #1
    Sencha Premium Member
    Join Date
    Apr 2013
    Posts
    9
    Vote Rating
    0
    szub is on a distinguished road

      0  

    Post add item in the Ext.util.MixedCollection

    add item in the Ext.util.MixedCollection


    I add new item:
    Code:
    add('itemkey', 12);
    Then
    Code:
    add('itemkey', 0)
    I want to change item with key 'itemkey', but it is not happen.
    Then I found the bug in you code (Ext JS 4.2):


    Code:
        insert : function(index, key, obj) {
            if (Ext.isIterable(key)) {
                return this.doInsert(index, key, obj);
            }
            return (obj ? this.doInsert(index, [key], [obj]) : this.doInsert(index, [key]))[0];
        },
    obj=0 treated as false...

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,997
    Vote Rating
    649
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Thanks for the post, we already have a ticket open for this: EXTJSIV-9269
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Thread Participants: 1