Skip to content

Commit

Permalink
Fix arrow function arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliy-bobrov committed Jan 14, 2018
1 parent bd211b2 commit 515f1c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
## 0.9.13
### Bug Fixes:
- Fix arrow function arguments.

## 0.9.12
### Bug Fixes:
- Update module RegExp, thanks @miluoshi.
- Fix directive strict DI compatability, thanks @miluoshi.
- Fix directive strict DI compatibility, thanks @miluoshi.

## 0.9.11
- Update documentation with notes about inline function inside angular methods declaration.
Expand Down
4 changes: 2 additions & 2 deletions lib/interceptors/directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ module.exports = function (name, directive) {

if (!exists) {
this.MODULE_CACHE[cacheKey] = true;
const transformedDirective = () => {
const directive = directiveFn.apply(null, arguments);
const transformedDirective = (...args) => {
const directive = directiveFn.apply(null, args);
const transformedDef = transform.call(this, name, directive);
directive.controller = transformedDef.controller;

Expand Down

0 comments on commit 515f1c1

Please sign in to comment.