2009-01-27 21:42:32 +00:00
|
|
|
/* Prototype JavaScript framework, version <%= PROTOTYPE_VERSION %>
|
|
|
|
* (c) 2005-2009 Sam Stephenson
|
|
|
|
*
|
|
|
|
* Prototype is freely distributable under the terms of an MIT-style license.
|
|
|
|
* For details, see the Prototype web site: http://www.prototypejs.org/
|
|
|
|
*
|
|
|
|
*--------------------------------------------------------------------------*/
|
2009-06-11 20:48:38 +00:00
|
|
|
|
2007-01-18 22:24:27 +00:00
|
|
|
var Prototype = {
|
|
|
|
Version: '<%= PROTOTYPE_VERSION %>',
|
2009-06-11 20:48:38 +00:00
|
|
|
|
2009-05-16 02:50:32 +00:00
|
|
|
Browser: (function(){
|
|
|
|
var ua = navigator.userAgent;
|
|
|
|
// Opera (at least) 8.x+ has "Opera" as a [[Class]] of `window.opera`
|
|
|
|
// This is a safer inference than plain boolean type conversion of `window.opera`
|
|
|
|
var isOpera = Object.prototype.toString.call(window.opera) == '[object Opera]';
|
|
|
|
return {
|
|
|
|
IE: !!window.attachEvent && !isOpera,
|
|
|
|
Opera: isOpera,
|
|
|
|
WebKit: ua.indexOf('AppleWebKit/') > -1,
|
|
|
|
Gecko: ua.indexOf('Gecko') > -1 && ua.indexOf('KHTML') === -1,
|
|
|
|
MobileSafari: /Apple.*Mobile.*Safari/.test(ua)
|
|
|
|
}
|
|
|
|
})(),
|
2007-04-24 03:31:14 +00:00
|
|
|
|
2007-01-18 22:24:27 +00:00
|
|
|
BrowserFeatures: {
|
2007-01-27 19:45:34 +00:00
|
|
|
XPath: !!document.evaluate,
|
2008-03-30 03:21:58 +00:00
|
|
|
SelectorsAPI: !!document.querySelector,
|
2009-01-22 02:29:23 +00:00
|
|
|
ElementExtensions: (function() {
|
2009-05-30 06:04:32 +00:00
|
|
|
var constructor = window.Element || window.HTMLElement;
|
|
|
|
return !!(constructor && constructor.prototype);
|
2009-01-22 02:29:23 +00:00
|
|
|
})(),
|
2009-05-30 06:04:32 +00:00
|
|
|
SpecificElementExtensions: (function() {
|
2009-01-22 02:29:23 +00:00
|
|
|
// First, try the named class
|
|
|
|
if (typeof window.HTMLDivElement !== 'undefined')
|
|
|
|
return true;
|
2009-06-11 20:48:38 +00:00
|
|
|
|
2009-01-22 02:29:23 +00:00
|
|
|
var div = document.createElement('div');
|
2009-05-30 06:04:32 +00:00
|
|
|
var form = document.createElement('form');
|
|
|
|
var isSupported = false;
|
2009-06-11 20:48:38 +00:00
|
|
|
|
2009-05-30 06:04:32 +00:00
|
|
|
if (div['__proto__'] && (div['__proto__'] !== form['__proto__'])) {
|
|
|
|
isSupported = true;
|
2009-01-22 02:29:23 +00:00
|
|
|
}
|
2009-06-11 20:48:38 +00:00
|
|
|
|
2009-05-30 06:04:32 +00:00
|
|
|
div = form = null;
|
2009-06-11 20:48:38 +00:00
|
|
|
|
2009-05-30 06:04:32 +00:00
|
|
|
return isSupported;
|
2009-01-22 02:29:23 +00:00
|
|
|
})()
|
2007-01-18 22:24:27 +00:00
|
|
|
},
|
2007-04-24 03:31:14 +00:00
|
|
|
|
2007-06-13 20:57:19 +00:00
|
|
|
ScriptFragment: '<script[^>]*>([\\S\\s]*?)<\/script>',
|
2009-06-11 20:48:38 +00:00
|
|
|
JSONFilter: /^\/\*-secure-([\s\S]*)\*\/\s*$/,
|
|
|
|
|
2007-04-24 03:31:14 +00:00
|
|
|
emptyFunction: function() { },
|
2007-01-18 22:24:27 +00:00
|
|
|
K: function(x) { return x }
|
2007-07-26 02:03:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
if (Prototype.Browser.MobileSafari)
|
|
|
|
Prototype.BrowserFeatures.SpecificElementExtensions = false;
|
2009-06-11 20:48:38 +00:00
|
|
|
|
2009-01-27 21:42:32 +00:00
|
|
|
//= require "lang"
|
|
|
|
//= require "ajax"
|
|
|
|
//= require "dom"
|
2007-01-18 22:24:27 +00:00
|
|
|
|
2009-01-27 21:42:32 +00:00
|
|
|
//= require "deprecated"
|