Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member stever's Avatar
    Join Date
    Mar 2007
    Posts
    1,406
    Vote Rating
    6
    stever will become famous soon enough stever will become famous soon enough

      0  

    Default [FIXED][3.0] Element.insertion.js replaceWith

    [FIXED][3.0] Element.insertion.js replaceWith


    El is not defined. It means to use Element in the line: "delete El.cache[me.id];".

    Original:
    PHP Code:
            replaceWith: function(el){
                var 
    me this,
                    
    Element Ext.Element;
                if(
    el.nodeType || el.dom){
                    
    el GETDOM(el);
                    
    me.dom.parentNode.insertBefore(elme.dom);
                }else{
                    
    el DH.insertBefore(me.domel);
                }
                
                
    delete El.cache[me.id];
                
    Ext.removeNode(me.dom);      
                
    me.id Ext.id(me.dom el);
                return 
    Element.cache[me.id] = me;        
            } 
    Proposed:
    PHP Code:
            replaceWith: function(el){
                var 
    me this,
                    
    Element Ext.Element;
                if(
    el.nodeType || el.dom){
                    
    el GETDOM(el);
                    
    me.dom.parentNode.insertBefore(elme.dom);
                }else{
                    
    el DH.insertBefore(me.domel);
                }
                
                
    delete Element.cache[me.id];
                
    Ext.removeNode(me.dom);      
                
    me.id Ext.id(me.dom el);
                return 
    Element.cache[me.id] = me;        
            } 

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,846
    Vote Rating
    609
    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


    Fixed.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Thread Participants: 1