X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/d41dc04ad17d1d9125fb2cf72db2b4782dbe3a8c..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/examples/feed-viewer/MainPanel.js diff --git a/examples/feed-viewer/MainPanel.js b/examples/feed-viewer/MainPanel.js index e6695d53..bb022ca4 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.1.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