X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/d41dc04ad17d1d9125fb2cf72db2b4782dbe3a8c..76cb34406ceaf9681a76e13b531d7eafa483ad88:/examples/feed-viewer/MainPanel.js diff --git a/examples/feed-viewer/MainPanel.js b/examples/feed-viewer/MainPanel.js index e6695d53..6029c3bd 100644 --- a/examples/feed-viewer/MainPanel.js +++ b/examples/feed-viewer/MainPanel.js @@ -1,11 +1,9 @@ -/* - * Ext JS Library 2.2.1 - * Copyright(c) 2006-2009, Ext JS, LLC. - * licensing@extjs.com - * - * http://extjs.com/license - */ - +/*! + * Ext JS Library 3.0.0 + * Copyright(c) 2006-2009 Ext JS, LLC + * licensing@extjs.com + * http://www.extjs.com/license + */ MainPanel = function(){ this.preview = new Ext.Panel({ id: 'preview', @@ -159,9 +157,7 @@ Ext.extend(MainPanel, Ext.TabPanel, { movePreview : function(m, pressed){ if(!m){ // cycle if not a menu item click - var readMenu = Ext.menu.MenuMgr.get('reading-menu'); - readMenu.render(); - var items = readMenu.items.items; + var items = Ext.menu.MenuMgr.get('reading-menu').items.items; var b = items[0], r = items[1], h = items[2]; if(b.checked){ r.setChecked(true); @@ -236,4 +232,6 @@ Ext.extend(MainPanel, Ext.TabPanel, { this.grid.store.data.each(this.openTab, this); this.endUpdate(); } -}); \ No newline at end of file +}); + +Ext.reg('appmainpanel', MainPanel); \ No newline at end of file