Onsen UI menu.SetMainPage正在工作,但在Phonegap开发者应用程序中给出了导致奇怪行为的错误

时间:2015-04-15 11:53:34

标签: javascript angularjs cordova onsen-ui

这是函数提供的错误。发生此错误后,单击事件停止工作。事实上我不得不强制退出应用程序。但是,由于此错误,Google Chrome桌面的效果非常好。

TypeError: undefined is not a function
    at Class.module.factory.Class.extend._destroyEventListeners (onsenui.js:10926)
    at Class.module.factory.Class.extend._destroy (onsenui.js:10930)
    at Scope.$get.Scope.$broadcast (angular.js:14438)
    at Scope.$get.Scope.$destroy (angular.js:14062)
    at Class.module.factory.Class.extend._appendMainPage (onsenui.js:12139)
    at module.factory.Class.extend.setMainPage (onsenui.js:12221)
    at processQueue (angular.js:12914)
    at angular.js:12930
    at Scope.$get.Scope.$eval (angular.js:14123)
    at Scope.$get.Scope.$digest (angular.js:13939)angular.js:11358 (anonymous function)angular.js:8445 $getangular.js:14440 $get.Scope.$broadcastangular.js:14062 $get.Scope.$destroyonsenui.js:12139 module.factory.Class.extend._appendMainPageonsenui.js:12221 module.factory.Class.extend.setMainPageangular.js:12914 processQueueangular.js:12930 (anonymous function)angular.js:14123 $get.Scope.$evalangular.js:13939 $get.Scope.$digestangular.js:14227 $get.Scope.$applyonsenui.js:19547 click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste.split.forEach.ngEventDirectives.(anonymous function).compile.listenerangular.js:3013 eventHandler

1 个答案:

答案 0 :(得分:1)

将Onsen UI更新为1.3.0解决了我的问题。同样的事情工作得非常好。我认为早期版本的Onsen UI存在某种错误。