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

Changeset 6622

Show
Ignore:
Timestamp:
04/29/07 01:30:26 (1 year ago)
Author:
sam
Message:

prototype: Fix Event extensions for Safari.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spinoffs/prototype/branches/event/src/event.js

    r6616 r6622  
    119119    }); 
    120120     
    121     // Safari can't stand this; we'll have to figure out a workaround 
    122     if (!B.WebKit) Object.extend(Event.prototype, Event.Methods); 
     121    Event.prototype = Event.prototype || document.createEvent("UIEvents").__proto__; 
     122    Object.extend(Event.prototype, Event.Methods); 
     123     
    123124  } else if (B.IE) { 
    124125    Object.extend(Observer.prototype, {