Closed (won't fix)
Project:
Chaos Tool Suite (ctools)
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Oct 2009 at 23:23 UTC
Updated:
25 Nov 2009 at 02:47 UTC
CTools completely breaks the Addtoany bar in IE with the error: ' Type mismatch.
page.js, line 1 character 5612'. The line in question is:
if(!window.addEventListener){document.detachEvent("onmousedown",a2a.doc_mousedown_check_scroll);document.detachEvent("onmouseup",a2a[a].doc_mouseup_toggle_dropdown)}else{document.removeEventListener("mousedown",a2a.doc_mousedown_check_scroll,false);document.removeEventListener("mouseup",a2a[a].doc_mouseup_toggle_dropdown,false)}
so the problem is with js event listeners..
To recreate this issue, enable the handy Addtoany module, put it somewhere on a page, then enable CTools and go that page. The problem goes away when CTools is disabled.
I've had a quick look through all the CTools js and can't find an obvious answer. Does anyone have any clues about this?
Comments
Comment #1
joehudson commentedComment #2
merlinofchaos commentedI'd say this is a bug in Addtoany's .js since it's the one doing the crashing. I certainly have no time to debug another module's javascript, just because it happens to crash when my javascript is enabled. I am confident that my javascript is solidly written.
Comment #3
joehudson commentedWell I've just tested the similar AddThis module too. Again, utterly broken when CTools in enabled in IE 7/8. AddThis is a pretty widely used service. I'd say there's definitely a js issue here worth fixing.
Comment #4
joehudson commentedfor anyone who encounters a similar issue, it turned out to be an IE issue, limiting the number of css and js files per page. turning on css aggregation should fix it in this case.