Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
refactor($compile): no need to use bind
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin authored and vojtajina committed May 29, 2014
1 parent d414b78 commit 6e15462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ng/compile.js
Expand Up @@ -995,7 +995,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {

var clone = transcludeFn(transcludedScope, cloneFn, controllers);
if (scopeCreated) {
clone.on('$destroy', bind(transcludedScope, transcludedScope.$destroy));
clone.on('$destroy', function() { transcludedScope.$destroy(); });
}
return clone;
};
Expand Down

0 comments on commit 6e15462

Please sign in to comment.