change traversal visitor method signature from (node, parent, scope, state) to (path, state)
This commit is contained in:
parent
8eeda9f75f
commit
13773e3c02
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user