This project is archived and is in readonly mode.

#491 ✓resolved
Fábio M. Costa

Document little code reduction

Reported by Fábio M. Costa | November 21st, 2008 @ 08:00 PM | in 2.0 (closed)


if (Browser.Engine.trident && Browser.Engine.version <= 4) $try(function(){
 doc.execCommand("BackgroundImageCache", false, true);
});
if (Browser.Engine.trident) doc.window.attachEvent('onunload', function() {
 doc.window.detachEvent('onunload', arguments.callee);
 doc.head = doc.html = doc.window = null;
});

Could be changed to:


if (Browser.Engine.trident){
 if(Browser.Engine.version <= 4) $try(function(){
  doc.execCommand("BackgroundImageCache", false, true);
 });
 doc.window.attachEvent('onunload', function() {
  doc.window.detachEvent('onunload', arguments.callee);
  doc.head = doc.html = doc.window = null;
 });
}

This starts at line 138 of Browser.js

http://github.com/mootools/mooto...

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Pages