diff options
Diffstat (limited to 'usr/local/www/javascript/scriptaculous/scriptaculous.js')
-rw-r--r-- | usr/local/www/javascript/scriptaculous/scriptaculous.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr/local/www/javascript/scriptaculous/scriptaculous.js b/usr/local/www/javascript/scriptaculous/scriptaculous.js index dac1228..8eee1c0 100644 --- a/usr/local/www/javascript/scriptaculous/scriptaculous.js +++ b/usr/local/www/javascript/scriptaculous/scriptaculous.js @@ -20,16 +20,18 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. var Scriptaculous = { - Version: '1.5.1', + Version: '1.6', require: function(libraryName) { // inserting via DOM fails in Safari 2.0, so brute force approach document.write('<script type="text/javascript" src="'+libraryName+'"></script>'); }, 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"); + 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(\?.*)?$/)) |