Ticket #1185 (closed bug: fixed)
jQuery is not defined
| Reported by: | jf.hovinne | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.1.3 |
| Component: | event | Version: | 1.1.2 |
| Keywords: | wymeditor, event | Cc: | jf.hovinne@… |
| Blocking: | Blocked by: |
Description
Working on WYMeditor, using latest revision (r1905), I get 'jQuery is not defined' exception, in jQuery.event at line:
jQuery.event.handle.apply(element, arguments);
The bug is not easily reproducible, though I guess it occurs when e.g. the users mouses over buttons (in WYMeditor's interface) while WYMeditor initializes.
I've found out that replacing above code by:
if(jQuery) jQuery.event.handle.apply(element, arguments);
seems to fix the issue.
Test page available at (fix is already included): http://dev.wymeditor.org/wymeditor/trunk/src/advanced.html
Source code available at: svn://svn.wymeditor.org/wymeditor
Attachments
Change History
comment:2 Changed 6 years ago by john
- need changed from Review to Patch
- Component changed from core to event
This is the same issue that I was helping the Prototype guys with the other day; only occurs in Firefox. We need to move our type/object checks from event.handle() into the new $handle method:.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.


Oops, sorry, the proposed fix doesn't work - the exception gets fired.