Changeset 612

Show
Ignore:
Timestamp:
02/09/06 16:44:16 (4 years ago)
Author:
bob@…
Message:

probably fix #52

Location:
mochikit/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • mochikit/trunk/MochiKit/DOM.js

    r611 r612  
    451451            ) 
    452452        ]; 
    453         var forEach = MochiKit.Iter.forEach; 
     453        var concat = MochiKit.Base.concat; 
    454454        while (nodeStack.length) { 
    455455            var n = nodeStack.shift(); 
     
    459459                elem.appendChild(n); 
    460460            } else { 
    461                 forEach(n, nodeStack.unshift, nodeStack); 
     461                nodeStack = concat(n, nodeStack); 
    462462            } 
    463463        } 
  • mochikit/trunk/packed/MochiKit/MochiKit.js

    r611 r612  
    26412641} 
    26422642var _337=[self.coerceToDOM(MochiKit.Base.extend(null,arguments,1),elem)]; 
    2643 var _338=MochiKit.Iter.forEach; 
     2643var _338=MochiKit.Base.concat; 
    26442644while(_337.length){ 
    26452645var n=_337.shift(); 
     
    26492649elem.appendChild(n); 
    26502650}else{ 
    2651 _338(n,_337.unshift,_337); 
     2651_337=_338(n,_337); 
    26522652} 
    26532653}