Skip to content

Commit

Permalink
fix(core/directives): properly clean up bindings on destroy (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell committed Apr 21, 2016
1 parent d452155 commit cb46729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/directives/util/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export function directiveControllerFactory<T extends DirectiveCtrl,U extends Typ
metadata,
_services
);
$scope.$on( '$destroy', ()=> removeWatches );
$scope.$on( '$destroy', () => removeWatches() );

// change injectables to proper inject directives
// we wanna do this only if we inject some locals/directives
Expand Down

0 comments on commit cb46729

Please sign in to comment.