/*!
- * Ext JS Library 3.0.0
+ * Ext JS Library 3.0.3
* Copyright(c) 2006-2009 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
* The version of the framework\r
* @type String\r
*/\r
- version : '3.0'\r
+ version : '3.0.3'\r
};\r
\r
/**\r
(function(){\r
var idSeed = 0,\r
toString = Object.prototype.toString,\r
- //assume it's not null and not an array\r
- isIterable = function(v){\r
- //check for array or arguments\r
- if(Ext.isArray(v) || v.callee){\r
- return true;\r
- }\r
- //check for node list type\r
- if(/NodeList|HTMLCollection/.test(toString.call(v))){\r
- return true;\r
- }\r
- //NodeList has an item and length property\r
- //IXMLDOMNodeList has nextNode method, needs to be checked first.\r
- return ((v.nextNode || v.item) && Ext.isNumber(v.length));\r
- },\r
ua = navigator.userAgent.toLowerCase(),\r
check = function(r){\r
return r.test(ua);\r
Ext.apply(Ext, {\r
/**\r
* URL to a blank file used by Ext when in secure mode for iframe src and onReady src to prevent\r
- * the IE insecure content warning (defaults to javascript:false).\r
+ * the IE insecure content warning (<tt>'about:blank'</tt>, except for IE in secure mode, which is <tt>'javascript:""'</tt>).\r
* @type String\r
*/\r
- SSL_SECURE_URL : 'javascript:false',\r
+ SSL_SECURE_URL : isSecure && isIE ? 'javascript:""' : 'about:blank', \r
/**\r
* True if the browser is in strict (standards-compliant) mode, as opposed to quirks mode\r
* @type Boolean\r
applyIf : function(o, c){\r
if(o){\r
for(var p in c){\r
- if(Ext.isEmpty(o[p])){\r
+ if(!Ext.isDefined(o[p])){\r
o[p] = c[p];\r
}\r
}\r
},\r
\r
/**\r
- * Extends one class with another class and optionally overrides members with the passed literal. This class\r
- * also adds the function "override()" to the class that can be used to override\r
- * members on an instance.\r
- * * <p>\r
- * This function also supports a 2-argument call in which the subclass's constructor is\r
- * not passed as an argument. In this form, the parameters are as follows:</p><p>\r
- * <div class="mdetail-params"><ul>\r
- * <li><code>superclass</code>\r
- * <div class="sub-desc">The class being extended</div></li>\r
- * <li><code>overrides</code>\r
- * <div class="sub-desc">A literal with members which are copied into the subclass's\r
- * prototype, and are therefore shared among all instances of the new class.<p>\r
- * This may contain a special member named <tt><b>constructor</b></tt>. This is used\r
- * to define the constructor of the new class, and is returned. If this property is\r
- * <i>not</i> specified, a constructor is generated and returned which just calls the\r
- * superclass's constructor passing on its parameters.</p></div></li>\r
- * </ul></div></p><p>\r
- * For example, to create a subclass of the Ext GridPanel:\r
+ * <p>Extends one class to create a subclass and optionally overrides members with the passed literal. This method\r
+ * also adds the function "override()" to the subclass that can be used to override members of the class.</p>\r
+ * For example, to create a subclass of Ext GridPanel:\r
* <pre><code>\r
MyGridPanel = Ext.extend(Ext.grid.GridPanel, {\r
constructor: function(config) {\r
- // Your preprocessing here\r
- MyGridPanel.superclass.constructor.apply(this, arguments);\r
- // Your postprocessing here\r
+\r
+// Create configuration for this Grid.\r
+ var store = new Ext.data.Store({...});\r
+ var colModel = new Ext.grid.ColumnModel({...});\r
+\r
+// Create a new config object containing our computed properties\r
+// *plus* whatever was in the config parameter.\r
+ config = Ext.apply({\r
+ store: store,\r
+ colModel: colModel\r
+ }, config);\r
+\r
+ MyGridPanel.superclass.constructor.call(this, config);\r
+\r
+// Your postprocessing here\r
},\r
\r
yourMethod: function() {\r
}\r
});\r
</code></pre>\r
- * </p>\r
- * @param {Function} subclass The class inheriting the functionality\r
- * @param {Function} superclass The class being extended\r
- * @param {Object} overrides (optional) A literal with members which are copied into the subclass's\r
- * prototype, and are therefore shared between all instances of the new class.\r
+ *\r
+ * <p>This function also supports a 3-argument call in which the subclass's constructor is\r
+ * passed as an argument. In this form, the parameters are as follows:</p>\r
+ * <div class="mdetail-params"><ul>\r
+ * <li><code>subclass</code> : Function <div class="sub-desc">The subclass constructor.</div></li>\r
+ * <li><code>superclass</code> : Function <div class="sub-desc">The constructor of class being extended</div></li>\r
+ * <li><code>overrides</code> : Object <div class="sub-desc">A literal with members which are copied into the subclass's\r
+ * prototype, and are therefore shared among all instances of the new class.</div></li>\r
+ * </ul></div>\r
+ *\r
+ * @param {Function} subclass The constructor of class being extended.\r
+ * @param {Object} overrides <p>A literal with members which are copied into the subclass's\r
+ * prototype, and are therefore shared between all instances of the new class.</p>\r
+ * <p>This may contain a special member named <tt><b>constructor</b></tt>. This is used\r
+ * to define the constructor of the new class, and is returned. If this property is\r
+ * <i>not</i> specified, a constructor is generated and returned which just calls the\r
+ * superclass's constructor passing on its parameters.</p>\r
+ * <p><b>It is essential that you call the superclass constructor in any provided constructor. See example code.</b></p>\r
* @return {Function} The subclass constructor.\r
- * @method extend\r
*/\r
extend : function(){\r
// inline overrides\r
});\r
sbp.override = io;\r
Ext.override(sb, overrides);\r
- sb.extend = function(o){Ext.extend(sb, o);};\r
+ sb.extend = function(o){return Ext.extend(sb, o);};\r
return sb;\r
};\r
}(),\r
* @param {String} namespace1\r
* @param {String} namespace2\r
* @param {String} etc\r
+ * @return {Object} The namespace object. (If multiple arguments are passed, this will be the last namespace created)\r
* @method namespace\r
*/\r
namespace : function(){\r
* @param {String} pre (optional) A prefix to add to the url encoded string\r
* @return {String}\r
*/\r
- urlEncode: function(o, pre){\r
- var undef, buf = [], key, e = encodeURIComponent;\r
+ urlEncode : function(o, pre){\r
+ var empty,\r
+ buf = [],\r
+ e = encodeURIComponent;\r
\r
- for(key in o){\r
- undef = !Ext.isDefined(o[key]);\r
- Ext.each(undef ? key : o[key], function(val, i){\r
- buf.push("&", e(key), "=", (val != key || !undef) ? e(val) : "");\r
+ Ext.iterate(o, function(key, item){\r
+ empty = Ext.isEmpty(item);\r
+ Ext.each(empty ? key : item, function(val){\r
+ buf.push('&', e(key), '=', (!Ext.isEmpty(val) && (val != key || !empty)) ? (Ext.isDate(val) ? Ext.encode(val).replace(/"/g, '') : e(val)) : '');\r
});\r
- }\r
+ });\r
if(!pre){\r
buf.shift();\r
- pre = "";\r
+ pre = '';\r
}\r
return pre + buf.join('');\r
},\r
* @return {Object} A literal with members\r
*/\r
urlDecode : function(string, overwrite){\r
+ if(Ext.isEmpty(string)){\r
+ return {};\r
+ }\r
var obj = {},\r
pairs = string.split('&'),\r
d = decodeURIComponent,\r
},\r
\r
/**\r
- * Appends content to the query string of a URL, which handles logic for whether to place\r
+ * Appends content to the query string of a URL, handling logic for whether to place\r
* a question mark or ampersand.\r
- * @param {String} url The url to append to.\r
- * @@param {String} s The content to append to the url.\r
- * @return (String) The appended string\r
+ * @param {String} url The URL to append to.\r
+ * @param {String} s The content to append to the URL.\r
+ * @return (String) The resulting URL\r
*/\r
urlAppend : function(url, s){\r
if(!Ext.isEmpty(s)){\r
}\r
}(),\r
\r
+ isIterable : function(v){\r
+ //check for array or arguments\r
+ if(Ext.isArray(v) || v.callee){\r
+ return true;\r
+ }\r
+ //check for node list type\r
+ if(/NodeList|HTMLCollection/.test(toString.call(v))){\r
+ return true;\r
+ }\r
+ //NodeList has an item and length property\r
+ //IXMLDOMNodeList has nextNode method, needs to be checked first.\r
+ return ((v.nextNode || v.item) && Ext.isNumber(v.length));\r
+ },\r
+\r
/**\r
- * Iterates an array calling the passed function with each item, stopping if your function returns false. If the\r
- * passed array is not really an array, your function is called once with it.\r
- * The supplied function is called with (Object item, Number index, Array allItems).\r
- * @param {Array/NodeList/Mixed} array\r
- * @param {Function} fn\r
- * @param {Object} scope\r
+ * Iterates an array calling the supplied function.\r
+ * @param {Array/NodeList/Mixed} array The array to be iterated. If this\r
+ * argument is not really an array, the supplied function is called once.\r
+ * @param {Function} fn The function to be called with each item. If the\r
+ * supplied function returns false, iteration stops and this method returns\r
+ * the current <code>index</code>. This function is called with\r
+ * the following arguments:\r
+ * <div class="mdetail-params"><ul>\r
+ * <li><code>item</code> : <i>Mixed</i>\r
+ * <div class="sub-desc">The item at the current <code>index</code>\r
+ * in the passed <code>array</code></div></li>\r
+ * <li><code>index</code> : <i>Number</i>\r
+ * <div class="sub-desc">The current index within the array</div></li>\r
+ * <li><code>allItems</code> : <i>Array</i>\r
+ * <div class="sub-desc">The <code>array</code> passed as the first\r
+ * argument to <code>Ext.each</code>.</div></li>\r
+ * </ul></div>\r
+ * @param {Object} scope The scope (<code>this</code> reference) in which the specified function is executed.\r
+ * Defaults to the <code>item</code> at the current <code>index</code>\r
+ * within the passed <code>array</code>.\r
+ * @return See description for the fn parameter.\r
*/\r
- each: function(array, fn, scope){\r
+ each : function(array, fn, scope){\r
if(Ext.isEmpty(array, true)){\r
return;\r
}\r
- if(!isIterable(array) || Ext.isPrimitive(array)){\r
+ if(!Ext.isIterable(array) || Ext.isPrimitive(array)){\r
array = [array];\r
}\r
for(var i = 0, len = array.length; i < len; i++){\r
* When iterating an object, the supplied function is called with each key-value pair in\r
* the object.</div></li>\r
* </ul></div>\r
- * @param {Object} scope The scope to call the supplied function with, defaults to\r
- * the specified <tt>object</tt>\r
+ * @param {Object} scope The scope (<code>this</code> reference) in which the specified function is executed. Defaults to\r
+ * the <code>object</code> being iterated.\r
*/\r
iterate : function(obj, fn, scope){\r
- if(isIterable(obj)){\r
+ if(Ext.isEmpty(obj)){\r
+ return;\r
+ }\r
+ if(Ext.isIterable(obj)){\r
Ext.each(obj, fn, scope);\r
return;\r
}else if(Ext.isObject(obj)){\r
},\r
\r
/**\r
- * Returns true if the passed object is a JavaScript array, otherwise false.\r
- * @param {Object} object The object to test\r
+ * Returns true if the passed value is a JavaScript array, otherwise false.\r
+ * @param {Mixed} value The value to test\r
* @return {Boolean}\r
*/\r
isArray : function(v){\r
},\r
\r
/**\r
- * Returns true if the passed object is a JavaScript Object, otherwise false.\r
+ * Returns true if the passed object is a JavaScript date object, otherwise false.\r
* @param {Object} object The object to test\r
* @return {Boolean}\r
*/\r
+ isDate : function(v){\r
+ return toString.apply(v) === '[object Date]';\r
+ },\r
+\r
+ /**\r
+ * Returns true if the passed value is a JavaScript Object, otherwise false.\r
+ * @param {Mixed} value The value to test\r
+ * @return {Boolean}\r
+ */\r
isObject : function(v){\r
return v && typeof v == "object";\r
},\r
\r
/**\r
- * Returns true if the passed object is a JavaScript 'primitive', a string, number or boolean.\r
+ * Returns true if the passed value is a JavaScript 'primitive', a string, number or boolean.\r
* @param {Mixed} value The value to test\r
* @return {Boolean}\r
*/\r
},\r
\r
/**\r
- * Returns true if the passed object is a JavaScript Function, otherwise false.\r
- * @param {Object} object The object to test\r
+ * Returns true if the passed value is a JavaScript Function, otherwise false.\r
+ * @param {Mixed} value The value to test\r
* @return {Boolean}\r
*/\r
isFunction : function(v){\r
},\r
\r
/**\r
- * Returns true if the passed object is a number. Returns false for non-finite numbers.\r
- * @param {Object} v The object to test\r
+ * Returns true if the passed value is a number. Returns false for non-finite numbers.\r
+ * @param {Mixed} value The value to test\r
* @return {Boolean}\r
*/\r
- isNumber: function(v){\r
+ isNumber : function(v){\r
return typeof v === 'number' && isFinite(v);\r
},\r
\r
/**\r
- * Returns true if the passed object is a string.\r
- * @param {Object} v The object to test\r
+ * Returns true if the passed value is a string.\r
+ * @param {Mixed} value The value to test\r
* @return {Boolean}\r
*/\r
- isString: function(v){\r
+ isString : function(v){\r
return typeof v === 'string';\r
},\r
\r
/**\r
- * Returns true if the passed object is a boolean.\r
- * @param {Object} v The object to test\r
+ * Returns true if the passed value is a boolean.\r
+ * @param {Mixed} value The value to test\r
* @return {Boolean}\r
*/\r
- isBoolean: function(v){\r
+ isBoolean : function(v){\r
return typeof v === 'boolean';\r
},\r
\r
/**\r
- * Returns true if the passed object is not undefined.\r
- * @param {Object} v The object to test\r
+ * Returns true if the passed value is not undefined.\r
+ * @param {Mixed} value The value to test\r
* @return {Boolean}\r
*/\r
- isDefined: function(v){\r
+ isDefined : function(v){\r
return typeof v !== 'undefined';\r
},\r
\r
* True if the detected browser uses WebKit.\r
* @type Boolean\r
*/\r
- isWebKit: isWebKit,\r
+ isWebKit : isWebKit,\r
/**\r
* True if the detected browser is Chrome.\r
* @type Boolean\r
* @param {String} namespace1\r
* @param {String} namespace2\r
* @param {String} etc\r
- * @method namespace\r
+ * @return {Object} The namespace object. (If multiple arguments are passed, this will be the last namespace created)\r
+ * @method ns\r
*/\r
Ext.ns = Ext.namespace;\r
})();\r
*/\r
Ext.apply(Function.prototype, {\r
/**\r
- * Creates an interceptor function. The passed fcn is called before the original one. If it returns false,\r
+ * Creates an interceptor function. The passed function is called before the original one. If it returns false,\r
* the original one is not called. The resulting function returns the results of the original function.\r
- * The passed fcn is called with the parameters of the original function. Example usage:\r
+ * The passed function is called with the parameters of the original function. Example usage:\r
* <pre><code>\r
var sayHi = function(name){\r
alert('Hi, ' + name);\r
sayHiToFriend('Brian'); // alerts "Hi, Brian"\r
</code></pre>\r
* @param {Function} fcn The function to call before the original\r
- * @param {Object} scope (optional) The scope of the passed fcn (Defaults to scope of original function or window)\r
+ * @param {Object} scope (optional) The scope (<code><b>this</b></code> reference) in which the passed function is executed.\r
+ * <b>If omitted, defaults to the scope in which the original function is called or the browser window.</b>\r
* @return {Function} The new function\r
*/\r
createInterceptor : function(fcn, scope){\r
// "Hi, Fred. You clicked the "Say Hi" button."\r
btn.on('click', sayHi.createDelegate(btn, ['Fred']));\r
</code></pre>\r
- * @param {Object} obj (optional) The object for which the scope is set\r
+ * @param {Object} scope (optional) The scope (<code><b>this</b></code> reference) in which the function is executed.\r
+ * <b>If omitted, defaults to the browser window.</b>\r
* @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller)\r
* @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding,\r
- * if a number the args are inserted at the specified position\r
+ * if a number the args are inserted at the specified position\r
* @return {Function} The new function\r
*/\r
createDelegate : function(obj, args, appendArgs){\r
}).defer(100);\r
</code></pre>\r
* @param {Number} millis The number of milliseconds for the setTimeout call (if less than or equal to 0 the function is executed immediately)\r
- * @param {Object} obj (optional) The object for which the scope is set\r
+ * @param {Object} scope (optional) The scope (<code><b>this</b></code> reference) in which the function is executed.\r
+ * <b>If omitted, defaults to the browser window.</b>\r
* @param {Array} args (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller)\r
* @param {Boolean/Number} appendArgs (optional) if True args are appended to call args instead of overriding,\r
- * if a number the args are inserted at the specified position\r
+ * if a number the args are inserted at the specified position\r
* @return {Number} The timeout id that can be used with clearTimeout\r
*/\r
defer : function(millis, obj, args, appendArgs){\r
/**\r
* Checks whether or not the specified object exists in the array.\r
* @param {Object} o The object to check for\r
+ * @param {Number} from (Optional) The index at which to begin the search\r
* @return {Number} The index of o in the array (or -1 if it is not found)\r
*/\r
- indexOf : function(o){\r
- for (var i = 0, len = this.length; i < len; i++){\r
- if(this[i] == o){\r
- return i;\r
+ indexOf : function(o, from){\r
+ var len = this.length;\r
+ from = from || 0;\r
+ from += (from < 0) ? len : 0;\r
+ for (; from < len; ++from){\r
+ if(this[from] === o){\r
+ return from;\r
}\r
}\r
return -1;\r
*/
Ext.apply(Ext, function(){
- var E = Ext, idSeed = 0;
+ var E = Ext,
+ idSeed = 0,
+ scrollWidth = null;
return {
/**
* For other browsers it uses an inline data URL.
* @type String
*/
- BLANK_IMAGE_URL : Ext.isIE6 || Ext.isIE7 ?
+ BLANK_IMAGE_URL : Ext.isIE6 || Ext.isIE7 || Ext.isAir ?
'http:/' + '/extjs.com/s.gif' :
'data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==',
return Ext.get(document);
},
- /**
- * Returns true if the passed object is a JavaScript date object, otherwise false.
- * @param {Object} object The object to test
- * @return {Boolean}
- */
- isDate : function(v){
- return Object.prototype.toString.apply(v) === '[object Date]';
- },
-
/**
* Utility method for validating that a value is numeric, returning the specified default value if it is not.
* @param {Mixed} value Should be a number, but any type will be handled appropriately
* @return {Number} Value, if numeric, else defaultValue
*/
num : function(v, defaultValue){
- v = Number(v === null || typeof v == 'boolean'? NaN : v);
+ v = Number(Ext.isEmpty(v) || Ext.isBoolean(v) ? NaN : v);
return isNaN(v)? defaultValue : v;
},
* @return {String}
*/
escapeRe : function(s) {
- return s.replace(/([.*+?^${}()|[\]\/\\])/g, "\\$1");
+ return s.replace(/([-.*+?^${}()|[\]\/\\])/g, "\\$1");
},
sequence : function(o, name, fn, scope){
cache = null;
}
},
+
+ /**
+ * Utility method for getting the width of the browser scrollbar. This can differ depending on
+ * operating system settings, such as the theme or font size.
+ * @param {Boolean} force (optional) true to force a recalculation of the value.
+ * @return {Number} The width of the scrollbar.
+ */
+ getScrollBarWidth: function(force){
+ if(!Ext.isReady){
+ return 0;
+ }
+
+ if(force === true || scrollWidth === null){
+ // Append our div, do our calculation and then remove it
+ var div = Ext.getBody().createChild('<div class="x-hide-offsets" style="width:100px;height:50px;overflow:hidden;"><div style="height:200px;"></div></div>'),
+ child = div.child('div', true);
+ var w1 = child.offsetWidth;
+ div.setStyle('overflow', (Ext.isWebKit || Ext.isGecko) ? 'auto' : 'scroll');
+ var w2 = child.offsetWidth;
+ div.remove();
+ // Need to add 2 to ensure we leave enough space
+ scrollWidth = w1 - w2 + 2;
+ }
+ return scrollWidth;
+ },
// deprecated
* @return {Object} The modified object.
*/
copyTo : function(dest, source, names){
- if(typeof names == 'string'){
+ if(Ext.isString(names)){
names = names.split(/[,;\s]/);
}
Ext.each(names, function(name){
var ret = [],
args = Array.prototype.slice.call(arguments, 2);
Ext.each(arr, function(v,i) {
- if (v && typeof v[methodName] == "function") {
+ if (v && Ext.isFunction(v[methodName])) {
ret.push(v[methodName].apply(v, args));
} else {
ret.push(undefined);
case RegExp: return 'regexp';
case Date: return 'date';
}
- if(typeof o.length == 'number' && typeof o.item == 'function') {
+ if(Ext.isNumber(o.length) && Ext.isFunction(o.item)) {
return 'nodelist';
}
}
sayGoodbye('Fred'); // both alerts show
</code></pre>
* @param {Function} fcn The function to sequence
- * @param {Object} scope (optional) The scope of the passed fcn (Defaults to scope of original function or window)
+ * @param {Object} scope (optional) The scope (<code><b>this</b></code> reference) in which the passed function is executed.
+ * <b>If omitted, defaults to the scope in which the original function is called or the browser window.</b>
* @return {Function} The new function
*/
createSequence : function(fcn, scope){
},
isAncestor : function(p, c){
+ var ret = false;
+
p = Ext.getDom(p);
c = Ext.getDom(c);
- if (!p || !c) {return false;}
-
- if(p.contains && !Ext.isSafari) {
- return p.contains(c);
- }else if(p.compareDocumentPosition) {
- return !!(p.compareDocumentPosition(c) & 16);
- }else{
- var parent = c.parentNode;
- while (parent) {
- if (parent == p) {
- return true;
- }
- else if (!parent.tagName || parent.tagName.toUpperCase() == "HTML") {
- return false;
+ if (p && c) {
+ if (p.contains) {
+ return p.contains(c);
+ } else if (p.compareDocumentPosition) {
+ return !!(p.compareDocumentPosition(c) & 16);
+ } else {
+ while (c = c.parentNode) {
+ ret = c == p || ret;
}
- parent = parent.parentNode;
- }
- return false;
- }
+ }
+ }
+ return ret;
},
getRegion : function(el){
var iid = setInterval(f, 50);
},
- resolveTextNode: function(node) {
- if (node && 3 == node.nodeType) {
- return node.parentNode;
- } else {
- return node;
+ resolveTextNode: Ext.isGecko ? function(node){
+ if(!node){
+ return;
}
+ var s = HTMLElement.prototype.toString.call(node);
+ if(s == '[xpconnect wrapped native prototype]' || s == '[object XULElement]'){
+ return;
+ }
+ return node.nodeType == 3 ? node.parentNode : node;
+ } : function(node){
+ return node && node.nodeType == 3 ? node.parentNode : node;
},
getRelatedTarget: function(ev) {
var createComplete = function(cb){
return function(xhr, status){
if((status == 'error' || status == 'timeout') && cb.failure){
- cb.failure.call(cb.scope||window, {
- responseText: xhr.responseText,
- responseXML : xhr.responseXML,
- argument: cb.argument
- });
+ cb.failure.call(cb.scope||window, createResponse(cb, xhr));
}else if(cb.success){
- cb.success.call(cb.scope||window, {
- responseText: xhr.responseText,
- responseXML : xhr.responseXML,
- argument: cb.argument
- });
+ cb.success.call(cb.scope||window, createResponse(cb, xhr));
}
};
};
+
+ var createResponse = function(cb, xhr){
+ var headerObj = {},
+ headerStr,
+ t,
+ s;
+
+ try {
+ headerStr = xhr.getAllResponseHeaders();
+ Ext.each(headerStr.replace(/\r\n/g, '\n').split('\n'), function(v){
+ t = v.indexOf(':');
+ if(t >= 0){
+ s = v.substr(0, t).toLowerCase();
+ if(v.charAt(t + 1) == ' '){
+ ++t;
+ }
+ headerObj[s] = v.substr(t + 1);
+ }
+ });
+ } catch(e) {}
+
+ return {
+ responseText: xhr.responseText,
+ responseXML : xhr.responseXML,
+ argument: cb.argument,
+ status: xhr.status,
+ statusText: xhr.statusText,
+ getResponseHeader : function(header){return headerObj[header.toLowerCase()];},
+ getAllResponseHeaders : function(){return headerStr}
+ };
+ };
return {
request : function(method, uri, cb, data, options){
var o = {
if (args.top.from)
e.setTop(args.top.from);
break;
+ case 'callback':
+ case 'scope':
+ // jQuery can't handle callback and scope arguments, so break here
+ break;
+
default:
o[k] = args[k].to;
if (args[k].from)