rem: if((typeof Prototype=='undefined') || parseFloat(Prototype.Version.split(".")[0] + "." + Prototype.Version.split(".")[1]) < 1.4) throw("script.aculo.us requires the Prototype JavaScript framework >= 1.4.0"); var scriptTags = document.getElementsByTagName("script"); for(var i=0;i<scriptTags.length;i++) { if(scriptTags[i].src && scriptTags[i].src.match(/scriptaculous\.js(\?.*)?$/)) { var path = scriptTags[i].src.replace(/scriptaculous\.js(\?.*)?$/,''); this.require(path + 'builder.js'); this.require(path + 'effects.js'); this.require(path + 'dragdrop.js'); this.require(path + 'controls.js'); this.require(path + 'slider.js'); break; } } 
add: if((typeof Prototype=='undefined') || (typeof Element == 'undefined') || (typeof Element.Methods=='undefined') || parseFloat(Prototype.Version.split(".")[0] + "." + Prototype.Version.split(".")[1]) < 1.5) throw("script.aculo.us requires the Prototype JavaScript framework >= 1.5.0");  $A(document.getElementsByTagName("script")).findAll( function(s) { return (s.src && s.src.match(/scriptaculous\.js(\?.*)?$/)) }).each( function(s) { var path = s.src.replace(/scriptaculous\.js(\?.*)?$/,''); var includes = s.src.match(/\?.*load=([a-z,]*)/); (includes ? includes[1] : 'builder,effects,dragdrop,controls,slider').split(',').each( function(include) { Scriptaculous.require(path+include+'.js') }); }); 
context:   load: function() {    if((typeof Prototype=='undefined') ||      parseFloat(Prototype.Version.split(".")[0] + "." +                 Prototype.Version.split(".")[1]) < 1.4)      throw("script.aculo.us requires the Prototype JavaScript framework >= 1.4.0");    var scriptTags = document.getElementsByTagName("script");    for(var i=0;i<scriptTags.length;i++) {      if(scriptTags[i].src && scriptTags[i].src.match(/scriptaculous\.js(\?.*)?$/)) {        var path = scriptTags[i].src.replace(/scriptaculous\.js(\?.*)?$/,'');        this.require(path + 'builder.js');        this.require(path + 'effects.js');        this.require(path + 'dragdrop.js');        this.require(path + 'controls.js');        this.require(path + 'slider.js');        break;      }    }  }
meta: 6359	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6359/52d313976f72b3f30c833a7675d476a595bc284d/scriptaculous.js/buggy/web/js/scriptaculous.js