call transformer methods on traverse context

This commit is contained in:
Sebastian McKenzie 2015-01-15 02:24:05 +11:00
parent 07ddfbeb5d
commit 6c5606b7e8

View File

@ -65,7 +65,7 @@ Transformer.prototype.transform = function (file) {
if (exit) fn = fns.exit;
if (!fn) return;
return fn(node, parent, file, scope);
return fn.call(this, node, parent, file, scope);
};
};