aboutsummaryrefslogtreecommitdiffstats
path: root/_libly.js
diff options
context:
space:
mode:
Diffstat (limited to '_libly.js')
-rw-r--r--_libly.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/_libly.js b/_libly.js
index fcdff1f..083449c 100644
--- a/_libly.js
+++ b/_libly.js
@@ -525,7 +525,7 @@ libly.Wedata.prototype = {
if (store && store.get('data') && new Date(store.get('expire')) > new Date()) {
logger.log('return cache. ');
store.get('data').forEach(function(item) { if (typeof itemCallback == 'function') itemCallback(item); });
- if (typeof finalCallback == 'function')
+ if (typeof finalCallback == 'function')
finalCallback(true, store.get('data'));
return;
}
@@ -536,7 +536,7 @@ libly.Wedata.prototype = {
if (cache) {
logger.log('return cache. -> ' + msg);
cache.forEach(function(item) { if (typeof itemCallback == 'function') itemCallback(item); });
- if (typeof finalCallback == 'function')
+ if (typeof finalCallback == 'function')
finalCallback(true, cache);
} else {
if (typeof finalCallback == 'function')