| Current Path : /home/emeraadmin/www/4d695/ |
| Current File : /home/emeraadmin/www/4d695/cache.js.tar |
home/emeraadmin/public_html/node_modules/c3/src/cache.js 0000644 00000001106 15170140401 0017241 0 ustar 00 import { ChartInternal } from './core';
ChartInternal.prototype.hasCaches = function (ids) {
for (var i = 0; i < ids.length; i++) {
if (! (ids[i] in this.cache)) { return false; }
}
return true;
};
ChartInternal.prototype.addCache = function (id, target) {
this.cache[id] = this.cloneTarget(target);
};
ChartInternal.prototype.getCaches = function (ids) {
var targets = [], i;
for (i = 0; i < ids.length; i++) {
if (ids[i] in this.cache) { targets.push(this.cloneTarget(this.cache[ids[i]])); }
}
return targets;
};