Bug Tracker

Ticket #1185 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

jQuery is not defined

Reported by: jf.hovinne Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.1.3 Component: event
Version: 1.1.2 Keywords: wymeditor, event
Cc: jf.hovinne@wymeditor.org Needs: Patch

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

jquery.event.diff (1.4 kB) - added by brandon 1 year ago.

Change History

Changed 1 year ago by jf.hovinne

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

Changed 1 year 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:.

Changed 1 year ago by brandon

Changed 1 year ago by brandon

  • status changed from new to closed
  • resolution set to fixed

This is fixed in Rev [2012].

Note: See TracTickets for help on using tickets.