Skip to content

Instantly share code, notes, and snippets.

Avatar

Christoph Nakazawa cpojer

View GitHub Profile
View Element.Events.change.js
/*<ltIE9>*/
if (!window.addEventListener) (function(){
var update = function(event){
event.target.store('$change', event.target.checked);
};
Element.Events.change = {
base: 'click',
condition: function(event){
View Element.Event.change.js
/*
---
name: Element.Event.Change
description: Normalizes the onchange-event in Internet Explorer for checkboxes and radio buttons.
license: MIT-style license.
requires: [Element.Event]
View Listener.js
// Element Listener Mixin
(function(){
var property = '$listener';
var setup = function(element){
var listener = new Events, removeEvent = listener.removeEvent;
listener.removeEvent = function(key, value){
removeEvent.call(this, key, value);
element.removeEvent(key, value);
};
View Listener.js
// Element Listener Mixin
(function(){
var property = '$listener';
var setup = function(element){
var listener = new Events, removeEvent = listener.removeEvent;
listener.removeEvent = function(key, value){
removeEvent.call(this, key, value);
element.removeEvent(key, value);
};
You can’t perform that action at this time.