rem: ['load', 'abort', 'error'].each(function(type){ var event = properties['on' + type]; delete properties['on' + type]; element.addEvent(type, function(){ this.removeEvent(type, arguments.callee); event.call(this); }); 
add: ['load', 'abort', 'error'].each(function(name){ var type = 'on' + name; var event = properties[type]; delete properties[type]; image[type] = function(){ if (!image) return; if (!element.parentNode){ element.width = image.width; element.height = image.height; } image = image.onload = image.onabort = image.onerror = null; event.call(element); element.fireEvent(name, element, 1); } 
context: 		['load', 'abort', 'error'].each(function(type){			var event = properties['on' + type];			delete properties['on' + type];			element.addEvent(type, function(){				this.removeEvent(type, arguments.callee);				event.call(this);			});		});
meta: 6924	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6924/ae85e8ed84919625e20e71ca06d60865bd374d2b/Assets.js/clean/Remote/Assets.js