[Webkit-unassigned] [Bug 62518] If an Event Listener is a Function, It Should be Called and Not Checked for handleEvent

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jun 12 15:25:32 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=62518





--- Comment #2 from Rob Brackett <rob at robbrackett.com>  2011-06-12 15:25:32 PST ---
For some context, this issue was found while using Chrome to test some JS that had only previously been run in Safari. 

A JS "class" (which is actually a function) had handleEvent() implemented as a "class method" (a property on the function itself instead of its prototype) that would auto-construct instances of the class based on data found in the DOM. This worked great in Safari, but as soon as the code was run in any other browser, the constructor function would run instead of handleEvent()!

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list