Ticket #185 (reopened defect)
jQuery.wymeditor.js : line 1557 - Incompatibility with jQuery 1.3.x
Reported by: | stephband | Owned by: | jf.hovinne |
---|---|---|---|
Priority: | major | Milestone: | 0.5 |
Component: | editor | Version: | trunk |
Keywords: | Cc: |
Description
jQuery.wymeditor.js : line 1557
jQuery.isFunction() no longer works as expected in Internet Explorer due to changes in jQuery-1.3.x. wym._options.postInitDialog is not reported as a function, but as an object, so isFunction returns false and wym._options.postInitDialog is not called.
replacing the line with:
if(wym._options.postInitDialog)
makes it work again.
Change History
comment:1 Changed 2 years ago by mr_lundis
- Status changed from new to closed
- Resolution set to wontfix
comment:2 Changed 18 months ago by cbosco
- Status changed from closed to reopened
- Resolution wontfix deleted
I think this should still be changed. The problem is a cross-window problem, not a native function problem.
See:
http://www.kilometer0.com/blog/code/internet-explorer-ie-cross-window-javascript-object-typeof-bug/
I like the first proposed workaround, e.g.
if(wym._options.postInitDialog && wym._options.postInitDialog.call) { ... }
Thanks!
This should not be an issue as long as you don't use a native function as callback. If you for some reason need to use a native function as callback, wrap it in a anonymous function and everything will be fine.
If this is not the case, feel free to reopen the ticket.