【发布时间】:2013-10-21 20:16:37
【问题描述】:
我正在尝试在 Joomla 中使用 strophe.js!对于 xmpp 聊天客户端,但它给了我这个错误。
Uncaught TypeError: Cannot read property 'id' of undefined strophe.js:3046
Strophe.Connection._onRequestStateChange strophe.js:3046
(anonymous function) mootools-core.js:88
(anonymous function) mootools-core.js:88
Strophe.Connection._processRequest strophe.js:2954
Strophe.Connection._throttledRequestHandler strophe.js:3022
Strophe.Connection.connect strophe.js:2399
conn.connect index.js:85
LoginPanel.Backbone.View.extend.connect converse.js:2761
LoginPanel.Backbone.View.extend.authenticate converse.js:2811
bound underscore.js:592
x.event.dispatch jquery.js:5095
v.handle
有什么办法可以解决这个冲突吗?或者有没有 strophe.js 的替代品?
【问题讨论】:
-
请将 urs 添加到 stophe.js,一些实例化它的代码以及它运行的内容(dom 等),未缩小。否则,这个问题无法回答。
-
其实我已经解决了这个错误。刚刚用最新版本替换了 mootools。我应该删除这个问题吗?
-
当然,要投票结束。如果您认为其他人会遇到这种情况,请在您自己的答案中添加原始版本的 mootools 和您替换它的版本
-
是的,请务必回答问题,以便对其他人有用或将其删除。请在答案中添加版本信息和网址,我给它一个 + 投票。
标签: jquery xmpp mootools conflict strophe