Skip to content

Instantly share code, notes, and snippets.

@jxpx777
Created January 25, 2013 16:41
Show Gist options
  • Save jxpx777/4635887 to your computer and use it in GitHub Desktop.
Save jxpx777/4635887 to your computer and use it in GitHub Desktop.
function workersForTab(tab, callback) {
var result = [], emitted;
for (var i = 0; i < workers.length; ++i) {
if (workers[i].tab == tab) result.push(workers[i]);
}
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment