prototypejs / prototype

Prototype JavaScript framework
http://prototypejs.org/
Other
3.54k stars 639 forks source link

function fireEvent_DOM throwing "element.dispatchEvent is not a function" #333

Open DarkSnowy opened 6 years ago

DarkSnowy commented 6 years ago

Uncaught TypeError: element.dispatchEvent is not a function at fireEvent_DOM (prototype.js:7141) at fire (prototype.js:7130) at HTMLDocument._methodized [as fire] (prototype.js:456) at HTMLDocument.fireContentLoadedEvent (prototype.js:7317)

Prototype.js build version 1.7.3

event.js getFireTarget expects a HTMLElement. fire should not wrap element in JQuery object.