/*!
- * Ext JS Library 3.2.1
+ * Ext JS Library 3.2.2
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
* The version of the framework
* @type String
*/
- version : '3.2.1',
+ version : '3.2.2',
versionDetail : {
major: 3,
minor: 2,
- patch: 1
+ patch: 2
}
};
} :
function(a, i, j){
return Array.prototype.slice.call(a, i || 0, j || a.length);
- }
+ };
}(),
isIterable : function(v){
getBody : function(){
return Ext.get(DOC.body || DOC.documentElement);
},
+
+ /**
+ * Returns the current document body as an {@link Ext.Element}.
+ * @return Ext.Element The document body
+ */
+ getHead : function() {
+ var head;
+
+ return function() {
+ if (head == undefined) {
+ head = Ext.get(DOC.getElementsByTagName("head")[0]);
+ }
+
+ return head;
+ };
+ }(),
/**
* Removes a DOM node from the document.
d.innerHTML = '';
delete Ext.elCache[n.id];
}
- }
+ };
}() : function(n){
if(n && n.parentNode && n.tagName != 'BODY'){
(Ext.enableNestedListenerRemoval) ? Ext.EventManager.purgeElement(n, true) : Ext.EventManager.removeAll(n);
// constants
POLL_RETRYS = 200,
POLL_INTERVAL = 20,
- EL = 0,
TYPE = 0,
FN = 1,
- WFN = 2,
OBJ = 2,
ADJ_SCOPE = 3,
SCROLLLEFT = 'scrollLeft',
getRelatedTarget : function(ev) {
ev = ev.browserEvent || ev;
return this.resolveTextNode(ev.relatedTarget ||
- (ev.type == MOUSEOUT ? ev.toElement :
- ev.type == MOUSEOVER ? ev.fromElement : null));
+ (/(mouseout|mouseleave)/.test(ev.type) ? ev.toElement :
+ /(mouseover|mouseenter)/.test(ev.type) ? ev.fromElement : null));
},
getPageX : function(ev) {
_load : function(e) {
loadComplete = true;
- var EU = Ext.lib.Event;
+
if (Ext.isIE && e !== true) {
- // IE8 complains that _load is null or not an object
- // so lets remove self via arguments.callee
+ // IE8 complains that _load is null or not an object
+ // so lets remove self via arguments.callee
doRemove(win, "load", arguments.callee);
}
},
_unload : function(e) {
var EU = Ext.lib.Event,
- i, j, l, v, ul, id, len, index, scope;
-
+ i, v, ul, id, len, scope;
for (id in unloadListeners) {
ul = unloadListeners[id];
status : isBrokenStatus ? 204 : conn.status,
statusText : isBrokenStatus ? 'No Content' : conn.statusText,
getResponseHeader : function(header){return headerObj[header.toLowerCase()];},
- getAllResponseHeaders : function(){return headerStr},
+ getAllResponseHeaders : function(){return headerStr;},
responseText : conn.responseText,
responseXML : conn.responseXML,
argument : callbackArg
var fElements = form.elements || (document.forms[form] || Ext.getDom(form)).elements,
hasSubmit = false,
encoder = encodeURIComponent,
- element,
- options,
name,
- val,
data = '',
type;
data += String.format("{0}={1}&", encoder(name), encoder((opt.hasAttribute ? opt.hasAttribute('value') : opt.getAttribute('value') !== null) ? opt.value : opt.text));
}
});
- } else if(!/file|undefined|reset|button/i.test(type)) {
+ } else if(!(/file|undefined|reset|button/i.test(type))) {
if(!(/radio|checkbox/i.test(type) && !element.checked) && !(type == 'submit' && hasSubmit)){
data += encoder(name) + '=' + encoder(element.value) + '&';
Ext.extend(EXTLIB.Motion, Ext.lib.AnimBase);
var superclass = EXTLIB.Motion.superclass,
- proto = EXTLIB.Motion.prototype,
pointsRe = /^points$/i;
Ext.apply(EXTLIB.Motion.prototype, {