idk wtf iamdoing

This commit is contained in:
Zixaphir 2013-05-07 19:31:38 -07:00
parent 176913138c
commit 06906a3c36
4 changed files with 17 additions and 8 deletions

View File

@ -10143,8 +10143,11 @@
lastupdate: 0, lastupdate: 0,
lastchecked: 0 lastchecked: 0
}; };
return $.get(items, function(items) { return $.get(items, function(_arg) {
if (items.lastupdate > now - freq || items.lastchecked > now - $.DAY) { var lastchecked, lastupdate;
lastupdate = _arg.lastupdate, lastchecked = _arg.lastchecked;
if ((lastupdate > now - freq) || (lastchecked > now - $.DAY)) {
return; return;
} }
return $.ready(function() { return $.ready(function() {

View File

@ -10166,8 +10166,11 @@
lastupdate: 0, lastupdate: 0,
lastchecked: 0 lastchecked: 0
}; };
return $.get(items, function(items) { return $.get(items, function(_arg) {
if (items.lastupdate > now - freq || items.lastchecked > now - $.DAY) { var lastchecked, lastupdate;
lastupdate = _arg.lastupdate, lastchecked = _arg.lastchecked;
if ((lastupdate > now - freq) || (lastchecked > now - $.DAY)) {
return; return;
} }
return $.ready(function() { return $.ready(function() {

View File

@ -10148,8 +10148,11 @@
lastupdate: 0, lastupdate: 0,
lastchecked: 0 lastchecked: 0
}; };
return $.get(items, function(items) { return $.get(items, function(_arg) {
if (items.lastupdate > now - freq || items.lastchecked > now - $.DAY) { var lastchecked, lastupdate;
lastupdate = _arg.lastupdate, lastchecked = _arg.lastchecked;
if ((lastupdate > now - freq) || (lastchecked > now - $.DAY)) {
return; return;
} }
return $.ready(function() { return $.ready(function() {

View File

@ -306,8 +306,8 @@ Main =
items = items =
lastupdate: 0 lastupdate: 0
lastchecked: 0 lastchecked: 0
$.get items, (items) -> $.get items, ({lastupdate, lastchecked}) ->
if items.lastupdate > now - freq or items.lastchecked > now - $.DAY if (lastupdate > now - freq) or (lastchecked > now - $.DAY)
return return
$.ready -> $.ready ->
$.on window, 'message', Main.message $.on window, 'message', Main.message