MCPcopy
hub / github.com/enyojs/enyo / addDependency

Function addDependency

src/ComputedSupport.js:214–221  ·  view source on GitHub ↗
(path, dep)

Source from the content-addressed store, hash-verified

212 }
213
214 var addDependency = function (path, dep) {
215 // its really an inverse look at the original
216 var deps;
217
218 if (dependencies[path] && !dependencies.hasOwnProperty(path)) dependencies[path] = dependencies[path].slice();
219 deps = dependencies[path] || (dependencies[path] = []);
220 deps.push(dep);
221 };
222
223 // now we handle the new computed properties the way we intended to
224 for (var i=0, ln; (ln=props.computed[i]); ++i) {

Callers 1

ComputedSupport.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected