Skip to content

Commit 8491329

Browse files
committed
[#7|fix] Fix wrapper behaviour
As to #7, current implementation of wrapper function can break code, which relies on value, returned by wrapepd function. This commit fixes reported issue by making wrapper function to return result of applying the original function. Changed description in both en/README.md and ru/README.md
1 parent 9fc4e64 commit 8491329

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

interfaceWrapper/en/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ example:
6868
Array.prototype.push.apply(args, arguments);
6969
console.log('Call: ' + fnName);
7070
console.dir(args);
71-
fn.apply(undefined, args);
71+
return fn.apply(undefined, args);
7272
}
7373
}
7474
```

interfaceWrapper/ru/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
Array.prototype.push.apply(args, arguments);
6868
console.log('Call: ' + fnName);
6969
console.dir(args);
70-
fn.apply(undefined, args);
70+
return fn.apply(undefined, args);
7171
}
7272
}
7373
```

0 commit comments

Comments
 (0)