2011-09-07 24 views
0

首先讓我說,感謝那些回答我以前的問題的人,幫助太棒了。 :)sencha + phonegap應用在ios模擬器中工作正常,但在桌面瀏覽器中引發錯誤

我遇到了另一個奇怪的問題與我的應用程序在開發中。

我的工作正在進行中的應用程序在模擬器中正常工作,但在桌面瀏覽器中查看時會報錯。

錯誤代碼是

Uncaught TypeError: Cannot call method 'addCls' of null sencha-touch-debug-w-comments.js:29830 

我並在

initComponent: function() { } 

並執行下面的行

listing.loginContentContainer = new Ext.Panel({ 
       id: 'loginContentContainer', 
       fullscreen: true, 
       layout: 'card', 
       cardAnimation: 'slide', 
       items: [signUpPanel, loginPanel, registrationPanel, menuBar], 
       listeners : { 
          afterrender : function() { } 
          } 
       }) 

我發起這個面板時一些調試和誤差產生我的index.js如下 Ext.ns('listing');

Ext.setup({ //init 
     //initial setup 
     tabletStartupScreen: 'tablet_startup.png', 
     phoneStartupScreen: 'phone_startup.png', 
     icon: 'icon.png', 
     glossOnIcon: true, 

     onReady: function() { 
     var app = new listing.App(); 


     } 


     }) 

有什麼想法嗎?非常感謝一如既往

回答

0

您正在使用哪種桌面瀏覽器? (Sencha Touch只與基於webkit的瀏覽器兼容),因此Safari和Chrome應該很好(Firefox/IE/Opera可能不會)。

+0

感謝您的回答。 :)我意識到這一點,只使用Safari和鉻 – Min

相關問題