Object.defineProperty(transformation.args, key, {
get: function() {
if(transformation.hasRun) {
- console.log('returning via path');
+ //console.log('returning via path');
return transformation.document.getNodeByPath(path);
} else {
- console.log('returning original arg');
+ //console.log('returning original arg');
return value;
}
-toret.TransformationStorage = function() {};
+toret.TransformationStorage = function() {
+ this._transformations = {};
+};
_.extend(toret.TransformationStorage.prototype, {
- _transformations: {},
register: function(Transformation) {
var list = (this._transformations[Transformation.prototype.name] = this._transformations[Transformation.prototype.name] || []);