MCPcopy
hub / github.com/CodeboxIDE/codebox / resetCollection

Function resetCollection

client/collections/addons.js:210–217  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

208 var box = require("core/box");
209
210 var resetCollection = function(index) {
211 that.reset(_.map(index.addons, function(addon) {
212 return _.extend(addon['package'], {
213 'git': addon.git
214 });
215 }));
216 return Q(index);
217 };
218
219 cached = hr.Cache.get("addons", indexKey);
220 if (cached) return resetCollection(cached);

Callers 1

addons.jsFile · 0.85

Calls 1

QFunction · 0.85

Tested by

no test coverage detected