Upgrade to ExtJS 3.3.1 - Released 11/30/2010
[extjs.git] / examples / feed-viewer / FeedViewer.js
index 7987268..fdc0799 100644 (file)
@@ -1,83 +1,83 @@
 /*!
 /*!
- * Ext JS Library 3.0.0
- * Copyright(c) 2006-2009 Ext JS, LLC
- * licensing@extjs.com
- * http://www.extjs.com/license
+ * Ext JS Library 3.3.1
+ * Copyright(c) 2006-2010 Sencha Inc.
+ * licensing@sencha.com
+ * http://www.sencha.com/license
  */
  */
-FeedViewer = {};\r
-\r
-Ext.onReady(function(){\r
-    Ext.QuickTips.init();\r
-\r
-    Ext.state.Manager.setProvider(new Ext.state.SessionProvider({state: Ext.appState}));\r
-\r
-    var tpl = Ext.Template.from('preview-tpl', {\r
-        compiled:true,\r
-        getBody : function(v, all){\r
-            return Ext.util.Format.stripScripts(v || all.description);\r
-        }\r
-    });\r
-    FeedViewer.getTemplate = function(){\r
-        return tpl;\r
-    }\r
-\r
-    var feeds = new FeedPanel();\r
-    var mainPanel = new MainPanel();\r
-\r
-    feeds.on('feedselect', function(feed){\r
-        mainPanel.loadFeed(feed);\r
-    });\r
-    \r
-    var viewport = new Ext.Viewport({\r
-        layout:'border',\r
-        items:[\r
-            new Ext.BoxComponent({ // raw element\r
-                region:'north',\r
-                el: 'header',\r
-                height:32\r
-            }),\r
-            feeds,\r
-            mainPanel\r
-         ]\r
-    });\r
-\r
-    // add some default feeds\r
-    feeds.addFeed({\r
-        url:'http://feeds.feedburner.com/extblog',\r
-        text: 'ExtJS.com Blog'\r
-    }, false, true);\r
-\r
-    feeds.addFeed({\r
-        url:'http://extjs.com/forum/external.php?type=RSS2',\r
-        text: 'ExtJS.com Forums'\r
-    }, true);\r
-\r
-    feeds.addFeed({\r
-        url:'http://feeds.feedburner.com/ajaxian',\r
-        text: 'Ajaxian'\r
-    }, true);\r
-    \r
-    Ext.get('header').on('click', function() {\r
-        viewport.focus();\r
-    });\r
-    \r
-    feeds.focus();\r
-});\r
-\r
-// This is a custom event handler passed to preview panels so link open in a new windw\r
-FeedViewer.LinkInterceptor = {\r
-    render: function(p){\r
-        p.body.on({\r
-            'mousedown': function(e, t){ // try to intercept the easy way\r
-                t.target = '_blank';\r
-            },\r
-            'click': function(e, t){ // if they tab + enter a link, need to do it old fashioned way\r
-                if(String(t.target).toLowerCase() != '_blank'){\r
-                    e.stopEvent();\r
-                    window.open(t.href);\r
-                }\r
-            },\r
-            delegate:'a'\r
-        });\r
-    }\r
+FeedViewer = {};
+
+Ext.onReady(function(){
+    Ext.QuickTips.init();
+
+    Ext.state.Manager.setProvider(new Ext.state.SessionProvider({state: Ext.appState}));
+
+    var tpl = Ext.Template.from('preview-tpl', {
+        compiled:true,
+        getBody : function(v, all){
+            return Ext.util.Format.stripScripts(v || all.description);
+        }
+    });
+    FeedViewer.getTemplate = function(){
+        return tpl;
+    }
+
+    var feeds = new FeedPanel();
+    var mainPanel = new MainPanel();
+
+    feeds.on('feedselect', function(feed){
+        mainPanel.loadFeed(feed);
+    });
+    
+    var viewport = new Ext.Viewport({
+        layout:'border',
+        items:[
+            new Ext.BoxComponent({ // raw element
+                region:'north',
+                el: 'header',
+                height:32
+            }),
+            feeds,
+            mainPanel
+         ]
+    });
+
+    // add some default feeds
+    feeds.addFeed({
+        url:'http://feeds.feedburner.com/extblog',
+        text: 'ExtJS.com Blog'
+    }, false, true);
+
+    feeds.addFeed({
+        url:'http://extjs.com/forum/external.php?type=RSS2',
+        text: 'ExtJS.com Forums'
+    }, true);
+
+    feeds.addFeed({
+        url:'http://feeds.feedburner.com/ajaxian',
+        text: 'Ajaxian'
+    }, true);
+    
+    Ext.get('header').on('click', function() {
+        viewport.focus();
+    });
+    
+    feeds.focus();
+});
+
+// This is a custom event handler passed to preview panels so link open in a new windw
+FeedViewer.LinkInterceptor = {
+    render: function(p){
+        p.body.on({
+            'mousedown': function(e, t){ // try to intercept the easy way
+                t.target = '_blank';
+            },
+            'click': function(e, t){ // if they tab + enter a link, need to do it old fashioned way
+                if(String(t.target).toLowerCase() != '_blank'){
+                    e.stopEvent();
+                    window.open(t.href);
+                }
+            },
+            delegate:'a'
+        });
+    }
 };
\ No newline at end of file
 };
\ No newline at end of file