Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11371: 0005-Fix-memory-leaks-in-update-replace-in-IE.-Closes-11.patch

File 0005-Fix-memory-leaks-in-update-replace-in-IE.-Closes-11.patch, 0.9 kB (added by kangax, 7 months ago)
  • a/src/dom.js

    old new  
    996996  }; 
    997997} 
    998998 
     999if (Prototype.Browser.IE) { 
     1000  $w('update replace').each(function(method) { 
     1001    Element.Methods[method] = Element.Methods[method].wrap( 
     1002      function(proceed, element, content) { 
     1003        $(element).childElements().each(function(child) { 
     1004          Event.stopObserving(child); 
     1005        }); 
     1006        proceed(element, content); 
     1007      } 
     1008    ) 
     1009  }) 
     1010} 
     1011 
    9991012Element._returnOffset = function(l, t) { 
    10001013  var result = [l, t]; 
    10011014  result.left = l;