Closed tudorian closed 8 years ago
This looks like an upstream issue...this file is vanilla upstream as far as I know. I would talk to the developrs of that project to get that resolved...and then please pass on the results to us here so that we update the file accordingly.
ok great!
i have a new version of converse.jquery.js. How can i generate the minified version of sahana chat?
Did you get this from upstream? General new version or specific fix for us?
1st test it using ?debug=1 If it works well then you can also compile & retest minified: http://eden.sahanafoundation.org/wiki/DeveloperGuidelines/Minify
or else send it to me for me to include/compile
Yes from upstream. I tested it on my local deployment but without success. I think there is a javascript loadin problem because sometimes the chat works and sometimes it doesn't
You need to have the nojquery version because a conflict will occur when both converse and web2py try and load their version of jquery
On 10 June 2015 at 17:16, Tudor Bugnar notifications@github.com wrote:
Yes from upstream. I tested it on my local deployment but without success. I think there is a javascript loadin problem because sometimes the chat works and sometimes it doesn't
— Reply to this email directly or view it on GitHub https://github.com/flavour/eden/issues/1092#issuecomment-110769915.
I still cannot figure out why the problem appears. Sometimes a value that is passed to converse is null and a method of converse tries to access a property of that null object
The problem appears in converse.nojquery when fastclick.js call the define function from converse.nojquery
if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {
// AMD. Register as an anonymous module.
define(function() {
return FastClick;
});
} else if (typeof module !== 'undefined' && module.exports) {
module.exports = FastClick.attach;
module.exports.FastClick = FastClick;
} else {
window.FastClick = FastClick;
}
Some times the following error appears when the chat windows is loaded TypeError: deps is undefined if (!deps.splice) {
file : converse.nojquery.js line 405 col 12