Created
January 13, 2011 10:45
-
-
Save colingourlay/777690 to your computer and use it in GitHub Desktop.
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 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