diff --git a/live-cache.js b/live-cache.js index 7df4c0d..07a70ff 100644 --- a/live-cache.js +++ b/live-cache.js @@ -28,9 +28,10 @@ }; this.check = function () { - if (undefined === runCache) { + if (undefined === runCache || null === runCache) { $.each(self.auto_updates, function () { - if (!runCache && $(this).length) { + var selector = "" + this; + if (!runCache && $(selector).length) { runCache = true; } });