This is now an actual repo:
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
var Transition = (function (){ | |
var transitionEvent = (function whichTransitionEvent(){ | |
var t, el = document.createElement("fakeelement") | |
,transitions = { | |
"WebkitTransition": "webkitTransitionEnd", | |
"MozTransition": "transitionend", | |
"OTransition": "oTransitionEnd", | |
"transition": "transitionend" | |
}; | |
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 elem(selector){ return document.querySelectorAll(selector); } | |
Object.defineProperties(NodeList.prototype, { | |
'each': { | |
value: function(fn){ | |
var self = this; | |
Array.prototype.slice.call(this, 0).forEach(function (){ | |
fn.apply(arguments[0], arguments); | |
}); | |
return self; | |
} |
NewerOlder