Skip to content

Instantly share code, notes, and snippets.

@colingourlay
Created January 13, 2011 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colingourlay/777690 to your computer and use it in GitHub Desktop.
Save colingourlay/777690 to your computer and use it in GitHub Desktop.
var lsaCall = [0];
function loadSubscribedArticles(i, tag, Author) {
var int,
self = this;
console.log("called with i=" + i);
if (typeof lsaCall[i] === "undefined" || lsaCall[i] === 0) {
console.log("first-time block ran");
lsaCall[i] = 1;
int = self.setInterval(
"loadSubscribedArticles('" + i + "', '" + tag + "', '" + Author + "')",
1000
);
}
}
loadSubscribedArticles(0, "", "");
loadSubscribedArticles(1, "", "");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment