2
我想在Joomla中使用strophe.js!为xmpp聊天客户端,但它给了我这个错误。strophejs与mootools冲突
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。我应该删除这个问题吗? – vcxz
当然,要投票结束。如果您认为这会被其他人遇到,请添加原始版本的mootools以及您在自己的答案中替换它的版本 –