This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* bind, unbind | |
* | |
* @author : nori([email protected]) | |
* @copyright : 5509(http://5509.me/) | |
* @license : The MIT License | |
* @modified : 2011-04-09 01:30 | |
* | |
* HOW TO USE | |
* bind event : bind(elm, type, func) or bind(elm, {}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Bind events | |
* bind(obj, listener, func) | |
* or | |
* bind(obj, { | |
* listener : func, | |
* listener2 : func2, | |
* // and more | |
* }) | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function() { | |
if ( !Element.__defineGetter__ || Element.prototype.hasOwnProperty("classList") ) return; | |
function classList(elm) { | |
this.elm = elm; | |
} | |
classList.prototype = { | |
add: function(klass) { | |
var _elm = this.elm, |
NewerOlder