Bug Tracker

Modify

Ticket #1185 (closed bug: fixed)

Opened 6 years ago

Last modified 14 months ago

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

jquery.event.diff Download (1.4 KB) - added by brandon 6 years ago.

Change History

comment:1 Changed 6 years ago by jf.hovinne

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

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

Changed 6 years ago by brandon

comment:3 Changed 6 years ago by brandon

  • Status changed from new to closed
  • Resolution set to fixed

This is fixed in Rev [2012].

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.