Last active
December 30, 2015 09:34
-
-
Save harishvc/539bbb15a74a5e14b675 to your computer and use it in GitHub Desktop.
mapit - content.js (browser resize)
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
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