X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/8464a511c74dff643095ce419659df60b0580b7a..26108cb6ddfa48f5b1530ef035ba38c3c117d9ad:/src/smartxml/transformations.js?ds=inline diff --git a/src/smartxml/transformations.js b/src/smartxml/transformations.js index 53dc384..6d72049 100644 --- a/src/smartxml/transformations.js +++ b/src/smartxml/transformations.js @@ -19,10 +19,10 @@ toret.createGenericTransformation = function(desc) { 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; } @@ -95,10 +95,11 @@ toret.createContextTransformation = function(desc) { -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] || []);