rem: Element.extend = (function() { if (Prototype.BrowserFeatures.SpecificElementExtensions) return Prototype.K;  var Methods = { }, ByTag = Element.Methods.ByTag;  var extend = Object.extend(function(element) { if (!element || element._extendedByPrototype || element.nodeType != 1 || element == window) return element;  var methods = Object.clone(Methods), tagName = element.tagName, property, value;   if (ByTag[tagName]) Object.extend(methods, ByTag[tagName]);  for (property in methods) { value = methods[property]; if (Object.isFunction(value) && !(property in element)) element[property] = value.methodize(); }  element._extendedByPrototype = Prototype.emptyFunction; return element;  }, { refresh: function() {  if (!Prototype.BrowserFeatures.ElementExtensions) { Object.extend(Methods, Element.Methods); Object.extend(Methods, Element.Methods.Simulated); } } });  extend.refresh(); return extend; })(); 
add: t[2].times(function() { div = div.firstChild }); 
context: Element.extend = (function() {  if (Prototype.BrowserFeatures.SpecificElementExtensions)    return Prototype.K;    var Methods = { }, ByTag = Element.Methods.ByTag;    var extend = Object.extend(function(element) {    if (!element || element._extendedByPrototype ||         element.nodeType != 1 || element == window) return element;    var methods = Object.clone(Methods),      tagName = element.tagName, property, value;        // extend methods for specific tags    if (ByTag[tagName]) Object.extend(methods, ByTag[tagName]);        for (property in methods) {      value = methods[property];      if (Object.isFunction(value) && !(property in element))        element[property] = value.methodize();    }        element._extendedByPrototype = Prototype.emptyFunction;    return element;      }, {     refresh: function() {      // extend methods for all tags (Safari doesn't need this)      if (!Prototype.BrowserFeatures.ElementExtensions) {        Object.extend(Methods, Element.Methods);        Object.extend(Methods, Element.Methods.Simulated);      }    }  });    extend.refresh();  return extend;})();
meta: 3332	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3332/5f76c255a1142feb4deee06d19994fc63210567f/dom.js/buggy/src/dom.js