我在使用 Ripple Emulator 的 Cordova 2.8 Android 项目的初始页面加载时遇到 angular-mobile-nav 问题。我得到的错误是:
TypeError: Object #<Object> has no method 'overrideBackbutton'
at module.exports.exec (chrome-extension://geelfhphabnejjhdalkjhgipohgpdnoc/ripple.js:40:22917)
at backButtonChannel.onHasSubscribersChange (http://localhost:8076/cordova.js:1145:13)
at Channel.subscribe (http://localhost:8076/cordova.js:667:49)
at HTMLDocument.document.addEventListener (http://localhost:8076/cordova.js:132:34)
at null.<anonymous> (http://localhost:8076/components/mobile-nav/mobile-nav.js:11:14)
at Channel.fire (http://localhost:8076/cordova.js:709:23)
at http://localhost:8076/cordova.js:232:47
基本上,这是由 mobile-nav.js 第 11 行引起的:
document.addEventListener("backbutton", function() {
源自第 1145 行的 cordova.js 调用引发的错误:
exec(null, null, "App", "overrideBackbutton", [this.numHandlers == 1]);
这是一个可以复制的问题吗?任何帮助将不胜感激。