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
/** | |
* Created by margintan on 15/1/15. | |
*/ | |
(function (win, doc){ | |
var _addEventListener = HTMLElement.prototype.addEventListener; | |
function fireEvent (_key, e) { | |
Object.keys(this[_key]).forEach(function (value) { | |
this[_key][value].call(this, e); | |
}, this); |