Upgrade to ExtJS 3.1.1 - Released 02/08/2010
[extjs.git] / examples / feed-viewer / FeedWindow.js
index 55483d5..8974055 100644 (file)
@@ -1,11 +1,9 @@
-/*\r
- * Ext JS Library 2.2.1\r
- * Copyright(c) 2006-2009, Ext JS, LLC.\r
- * licensing@extjs.com\r
- * \r
- * http://extjs.com/license\r
- */\r
-\r
+/*!
+ * Ext JS Library 3.1.1
+ * Copyright(c) 2006-2010 Ext JS, LLC
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
 FeedWindow = function() {\r
     this.feedUrl = new Ext.form.ComboBox({\r
         id: 'feed-url',\r
@@ -29,7 +27,7 @@ FeedWindow = function() {
                 '<em>{url}</em><strong>{text}</strong>',\r
                 '<div class="x-clear"></div>',\r
                 '</div></tpl>'),\r
-        store: new Ext.data.SimpleStore({\r
+        store: new Ext.data.ArrayStore({\r
             fields: ['url', 'text'],\r
             data : this.defaultFeeds\r
         })\r
@@ -57,7 +55,7 @@ FeedWindow = function() {
 \r
         buttons:[{\r
             text: 'Add Feed!',\r
-            handler: this.onAdd,\r
+            handler: this.onFeedAdd,\r
             scope: this\r
         },{\r
             text: 'Cancel',\r
@@ -86,7 +84,7 @@ Ext.extend(FeedWindow, Ext.Window, {
         FeedWindow.superclass.show.apply(this, arguments);\r
     },\r
 \r
-    onAdd: function() {\r
+    onFeedAdd: function() {\r
         this.el.mask('Validating Feed...', 'x-mask-loading');\r
         var url = this.feedUrl.getValue();\r
         Ext.Ajax.request({\r
@@ -127,4 +125,4 @@ Ext.extend(FeedWindow, Ext.Window, {
         }\r
         this.markInvalid();\r
     }\r
-});
\ No newline at end of file
+});\r