Upgrade to ExtJS 3.2.0 - Released 03/30/2010
[extjs.git] / docs / source / JsonProvider.html
index 88a0450..d9ea2d7 100644 (file)
@@ -1,49 +1,55 @@
-<html>\r
-<head>\r
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    \r
-  <title>The source code</title>\r
-    <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
-    <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
-</head>\r
-<body  onload="prettyPrint();">\r
-    <pre class="prettyprint lang-js"><div id="cls-Ext.direct.JsonProvider"></div>/**\r
- * @class Ext.direct.JsonProvider\r
- * @extends Ext.direct.Provider\r
- */\r
-Ext.direct.JsonProvider = Ext.extend(Ext.direct.Provider, {\r
-    parseResponse: function(xhr){\r
-        if(!Ext.isEmpty(xhr.responseText)){\r
-            if(typeof xhr.responseText == 'object'){\r
-                return xhr.responseText;\r
-            }\r
-            return Ext.decode(xhr.responseText);\r
-        }\r
-        return null;\r
-    },\r
-\r
-    getEvents: function(xhr){\r
-        var data = null;\r
-        try{\r
-            data = this.parseResponse(xhr);\r
-        }catch(e){\r
-            var event = new Ext.Direct.ExceptionEvent({\r
-                data: e,\r
-                xhr: xhr,\r
-                code: Ext.Direct.exceptions.PARSE,\r
-                message: 'Error parsing json response: \n\n ' + data\r
-            })\r
-            return [event];\r
-        }\r
-        var events = [];\r
-        if(Ext.isArray(data)){\r
-            for(var i = 0, len = data.length; i < len; i++){\r
-                events.push(Ext.Direct.createEvent(data[i]));\r
-            }\r
-        }else{\r
-            events.push(Ext.Direct.createEvent(data));\r
-        }\r
-        return events;\r
-    }\r
-});</pre>    \r
-</body>\r
+<html>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    
+  <title>The source code</title>
+    <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
+    <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
+</head>
+<body  onload="prettyPrint();">
+    <pre class="prettyprint lang-js">/*!
+ * Ext JS Library 3.2.0
+ * Copyright(c) 2006-2010 Ext JS, Inc.
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
+<div id="cls-Ext.direct.JsonProvider"></div>/**
+ * @class Ext.direct.JsonProvider
+ * @extends Ext.direct.Provider
+ */
+Ext.direct.JsonProvider = Ext.extend(Ext.direct.Provider, {
+    parseResponse: function(xhr){
+        if(!Ext.isEmpty(xhr.responseText)){
+            if(typeof xhr.responseText == 'object'){
+                return xhr.responseText;
+            }
+            return Ext.decode(xhr.responseText);
+        }
+        return null;
+    },
+
+    getEvents: function(xhr){
+        var data = null;
+        try{
+            data = this.parseResponse(xhr);
+        }catch(e){
+            var event = new Ext.Direct.ExceptionEvent({
+                data: e,
+                xhr: xhr,
+                code: Ext.Direct.exceptions.PARSE,
+                message: 'Error parsing json response: \n\n ' + data
+            });
+            return [event];
+        }
+        var events = [];
+        if(Ext.isArray(data)){
+            for(var i = 0, len = data.length; i < len; i++){
+                events.push(Ext.Direct.createEvent(data[i]));
+            }
+        }else{
+            events.push(Ext.Direct.createEvent(data));
+        }
+        return events;
+    }
+});</pre>    
+</body>
 </html>
\ No newline at end of file