Skip to content

Instantly share code, notes, and snippets.

View syavorsky's full-sized avatar

Sergiy Yavorsky syavorsky

View GitHub Profile
@syavorsky
syavorsky / champagne.js
Created July 5, 2012 14:31 — forked from mislav/champagne.js
Emulate "submit" and "change" events bubbling in IE for Prototype 1.7
/** Emulate "submit" and "change" events bubbling
*
* This plugin enables handling bubbling submit/change events by browsers which
* natively don't support this. It only augments `Element.on()` method and doesn't
* fix when this events are observed with `observe()`.
*/
;(function() {
// Technique from Juriy Zaytsev
// http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/
function isEventSupported(eventName) {