Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 7986

Show
Ignore:
Timestamp:
10/22/07 01:04:17 (11 months ago)
Author:
tobie
Message:

prototype: Prevent a Firefox bug from throwing errors on page load/unload. Closes #5393, #9421.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spinoffs/prototype/trunk/CHANGELOG

    r7983 r7986  
    11*SVN* 
     2 
     3* Make sure Event and Event.extend are defined before wrapping events and calling their handler. Prevents a known Firefox bug from throwing errors on page load/unload (cf.: https://bugzilla.mozilla.org/show_bug.cgi?id=361271). Closes #5393, #9421. [staaky, John Resig, sam, Tobie Langel] 
    24 
    35* Minor cosmetic changes to the display of unit tests in terminal. [Tobie Langel] 
  • spinoffs/prototype/trunk/src/event.js

    r7954 r7986  
    153153     
    154154    var wrapper = function(event) { 
    155       if (event.eventName && event.eventName != eventName) 
    156         return false; 
     155      if (!Event || !Event.extend || 
     156        (event.eventName && event.eventName != eventName)) 
     157          return false; 
    157158       
    158159      Event.extend(event);