This file contains 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
/* | |
* Easing Equations ported to CSS by @matthewlein - http://matthewlein.com/ceaser/ | |
* Converted to SCSS vars by @pettpett | |
* | |
* sample usage: | |
* a { | |
* color: #ff0000; | |
* transition: color 0.5s $easeOutQuint; | |
* &:hover, |
This file contains 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(window){ | |
var EVENT_EXISTS = 'GlobalEvents: Event already exists.'; | |
var eventIsRunning, | |
_eventStack, | |
_findByName, | |
stackEvent, | |
removeEvent, | |
eventListener, |
This file contains 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
/** | |
* | |
* @param {Object} obj - the object you want to get a value out of | |
* @param {Array | String} path - the path to the value, can either be an array `['a', 'b', 'c']` of keys or | |
* string using dotnotation `a.b.c` | |
* @param {*} [defaultValue=undefined] the value you want to return if the key is not found in the object | |
*/ | |
const getObjValue = (obj, path, defaultValue) => { | |
let checkedPath = path; | |
if (!Array.isArray(checkedPath)) { |