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

joehudson’s picture

Title: IE 'Type mismatch' when using Addtoany module. » IE js error, 'Type mismatch' when using Addtoany module.
merlinofchaos’s picture

Status: Active » Closed (won't fix)

I'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.

joehudson’s picture

Well 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.

joehudson’s picture

for 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.