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 throttle(callback, delay, before) { | |
var busy = false; | |
var hold = false; | |
function callAfterDelay(self, args) { | |
setTimeout(function() { | |
if (hold) { | |
hold = false; | |
callAfterDelay(self, args); | |
return; |
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
#threadTree treechildren { | |
font-size: 16pt; | |
} | |
#threadTree treechildren:-moz-tree-row { | |
border-bottom: 1px solid #E1E1E1; | |
height: 20pt !important; | |
} |
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 eachAsync(collection, iterator, callback) { | |
var iterate = function(i) { | |
setTimeout(function() { | |
iterator(collection[i]); | |
if (i < collection.length) { | |
iterate(i + 1); | |
} else { | |
callback(); | |
} | |
}, 0); |
NewerOlder