2007-01-18 22:24:27 +00:00
|
|
|
<%= include 'HEADER' %>
|
|
|
|
|
|
|
|
var Prototype = {
|
|
|
|
Version: '<%= PROTOTYPE_VERSION %>',
|
2007-02-19 22:23:10 +00:00
|
|
|
|
|
|
|
Browser: {
|
|
|
|
IE: !!(window.attachEvent && !window.opera),
|
|
|
|
Opera: !!window.opera,
|
|
|
|
WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1,
|
|
|
|
Gecko: navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('KHTML') == -1
|
|
|
|
},
|
2007-01-18 22:24:27 +00:00
|
|
|
BrowserFeatures: {
|
2007-01-27 19:45:34 +00:00
|
|
|
XPath: !!document.evaluate,
|
|
|
|
ElementExtensions: !!window.HTMLElement,
|
|
|
|
SpecificElementExtensions:
|
|
|
|
(document.createElement('div').__proto__ !==
|
|
|
|
document.createElement('form').__proto__)
|
2007-01-18 22:24:27 +00:00
|
|
|
},
|
|
|
|
|
2007-04-03 22:21:58 +00:00
|
|
|
ScriptFragment: '<script[^>]*>([\u0001-\uFFFF]*?)</script>',
|
2007-01-18 22:24:27 +00:00
|
|
|
emptyFunction: function() {},
|
|
|
|
K: function(x) { return x }
|
|
|
|
}
|
|
|
|
|
|
|
|
<%= include 'base.js', 'string.js' %>
|
|
|
|
|
|
|
|
<%= include 'enumerable.js', 'array.js', 'hash.js', 'range.js' %>
|
|
|
|
|
|
|
|
<%= include 'ajax.js', 'dom.js', 'selector.js', 'form.js', 'event.js', 'position.js' %>
|
|
|
|
|
|
|
|
Element.addMethods();
|