2016-07-20 6 views
0

com.alcoapps.drawermenuモジュールを使用してドロワーメニュー機能を実装しました。これはappcelerator sdkバージョン4.0.0で問題なく動作します。しかし、appcelerator sdkのバージョンを5.3.1にアップグレードすると、ランタイムエラーが発生します。appceleratorドロワーメニューが機能しません

[ERROR] : TiExceptionHandler: (main) [655,655] ----- Titanium Javascript Runtime Error ----- 
    [ERROR] : TiExceptionHandler: (main) [0,655] - In ti:/view.js:19,10 
    [ERROR] : TiExceptionHandler: (main) [0,655] - Message: Uncaught Error: Cannot add window/tabGroup to a view. 
    [ERROR] : TiExceptionHandler: (main) [0,655] - Source:   throw new Error("Cannot add window/tabGroup to a view."); 
    [ERROR] : V8Exception: Exception occurred at ti:/view.js:19: Uncaught Error: Cannot add window/tabGroup to a view. 

following is the runtime error:

デバッグの後、私は私が thisドキュメントリンクを介して行っている

$.drawermenu.init({ 
    menuview : menu, 
    mainview : main, 
    duration : 200, 
    parent : thisWin 
}); 

あるエラーのsourcsを見出しました。

答えて

0

エラーが示すように、ウィンドウをビューに追加することはできません。

demoを見ると、モジュールはWindowsではなくビューを使用していることがわかります。あなたもすべき!

<Window>タグを<View>タグに変換してください。すべてのタグが再び機能するはずです。

+0

"今作業していません" –

関連する問題