marko/taglibs/optimizer/DependencyTag.js
2014-01-24 14:27:15 -07:00

11 lines
347 B
JavaScript

'use strict';
module.exports = {
process: function (input, context) {
var dependenciesParent = input.dependenciesParent;
if (!dependenciesParent) {
throw new Error('Expected property "dependenciesParent"');
}
delete input.dependenciesParent;
dependenciesParent.addDependency(input);
}
};