change traversal visitor method signature from (node, parent, scope, state) to (path, state)

This commit is contained in:
Sebastian McKenzie 2015-09-15 06:27:19 +01:00
parent 8eeda9f75f
commit 13773e3c02

View File

@ -20,7 +20,7 @@ export function call(key) {
var previousType = this.type;
// call the function with the params (node, parent, scope, state)
var replacement = fn.call(this, node, this.parent, this.scope, this.state);
var replacement = fn.call(this, this, this.state);
if (replacement) {
this.replaceWith(replacement, true);