Skip to content

Commit 2ec3dec

Browse files
committed
clean signature
1 parent 390ca6d commit 2ec3dec

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/behavior.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,21 +143,21 @@ function createFunction(name, func, core, useCoreAPI) {
143143

144144
if (params[0] !== '') {
145145
action = new Function(
146-
'__proxy',
146+
'__action',
147147
'return function ' +
148148
name +
149149
' (' +
150-
params.join(',') +
150+
params.join(', ') +
151151
") { return new Function('" +
152-
params.join("','") +
153-
"', __proxy).apply(this, arguments) };"
152+
params.join("', '") +
153+
"', __action).apply(this, arguments) };"
154154
)(funcBody);
155155
} else {
156156
action = new Function(
157-
'__proxy',
157+
'__action',
158158
'return function ' +
159159
name +
160-
' () { return new Function(__proxy).apply(this, arguments) };'
160+
' () { return new Function(__action).apply(this, arguments) };'
161161
)(funcBody);
162162
}
163163

0 commit comments

Comments
 (0)