Upgrade to ExtJS 3.0.3 - Released 10/11/2009
[extjs.git] / src / adapter / core / ext-base-ajax.js
index 09fb0ec..59b8465 100644 (file)
@@ -1,5 +1,5 @@
 /*!
 /*!
- * 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
  * Copyright(c) 2006-2009 Ext JS, LLC
  * licensing@extjs.com
  * http://www.extjs.com/license
@@ -35,7 +35,7 @@
 \r
             if (pub.headers) {\r
                                setTheHeaders(conn, pub.headers);\r
 \r
             if (pub.headers) {\r
                                setTheHeaders(conn, pub.headers);\r
-                pub.headers = null;                \r
+                delete pub.headers;                \r
             }\r
         }    \r
         \r
             }\r
         }    \r
         \r
@@ -45,8 +45,8 @@
                    tId : tId,\r
                    status : isAbort ? -1 : 0,\r
                    statusText : isAbort ? 'transaction aborted' : 'communication failure',\r
                    tId : tId,\r
                    status : isAbort ? -1 : 0,\r
                    statusText : isAbort ? 'transaction aborted' : 'communication failure',\r
-                    isAbort: true,\r
-                    isTimeout: true,\r
+                isAbort: isAbort,\r
+                isTimeout: isTimeout,\r
                    argument : callbackArg\r
             };\r
         }  \r
                    argument : callbackArg\r
             };\r
         }  \r
                                            Ext.each(element.options, function(opt) {\r
                                                    if (opt.selected) {\r
                                                            data += String.format("{0}={1}&",                                                                                             \r
                                            Ext.each(element.options, function(opt) {\r
                                                    if (opt.selected) {\r
                                                            data += String.format("{0}={1}&",                                                                                             \r
-                                                                                                encoder(name),                                                                                          \r
-                                                                                                 (opt.hasAttribute ? opt.hasAttribute('value') : opt.getAttributeNode('value').specified) ? opt.value : opt.text);\r
+                                                                                                encoder(name),\r
+                                                         encoder((opt.hasAttribute ? opt.hasAttribute('value') : opt.getAttribute('value') !== null) ? opt.value : opt.text));\r
                                 }                                                              \r
                             });\r
                                } else if(!/file|undefined|reset|button/i.test(type)) {\r
                                 }                                                              \r
                             });\r
                                } else if(!/file|undefined|reset|button/i.test(type)) {\r