Last active
December 30, 2015 09:34
mapit - content.js (browser resize)
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 timeoutId = 0; | |
window.addEventListener('resize', function() { | |
if (DEBUG === true) { console.log("browser resizing ......");} | |
if (timeoutId) { | |
clearTimeout(timeoutId); | |
} | |
timeoutId = setTimeout(function() { | |
Start(); | |
timeoutId = 0; | |
}, 100); | |
}, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment