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
// Used to track the enabling of hover effects | |
var enableTimer = 0; | |
/* | |
* Listen for a scroll and use that to remove | |
* the possibility of hover effects | |
*/ | |
window.addEventListener('scroll', function() { | |
clearTimeout(enableTimer); | |
removeHoverClass(); |
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
.element-to-clearfix | |
*zoom: 1 | |
&:before, | |
&:after | |
content: '' | |
display: table | |
&:after | |
clear: both |
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
/** | |
* Handles set up / clean up of multiple named event timers | |
* @constructor | |
*/ | |
var TimedEventManager = function () { | |
this.timers = {}; | |
}; | |
TimedEventManager.prototype = { |
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 testFeature = (function () { | |
return { | |
/** | |
* Accepts a feature name and feature test function to test for truthness | |
* @param {String} featureName of the feature being tested | |
* @param {Function} testMethod the feature test method ( this should always return true or false ) | |
*/ | |
addTest: function( featureName, testMethod ) { |
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
/** | |
* @name EventViewFactory | |
* @constructor | |
*/ | |
var EventViewFactory = function() { | |
return { | |
/** | |
* @name create |
NewerOlder