Skip to content

Commit

Permalink
Copy prototype function during DI annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
dylex committed Oct 9, 2014
1 parent 6af822b commit 3c3b559
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Angular/DI.purs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ foreign import annotate
\ f = f(inject[i] === '$this' ? this : arguments[a++]);\
\ return f();\
\ }\
\ g.prototype = f.prototype;\
\ g.$inject = inject.filter(function (d) { return d !== '$this'; });\
\ return g;\
\ };\
Expand Down

0 comments on commit 3c3b559

Please sign in to comment.