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

Commit 6e15462

Browse files
petebacondarwinvojtajina
authored andcommitted
refactor($compile): no need to use bind
1 parent d414b78 commit 6e15462

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/compile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
995995

996996
var clone = transcludeFn(transcludedScope, cloneFn, controllers);
997997
if (scopeCreated) {
998-
clone.on('$destroy', bind(transcludedScope, transcludedScope.$destroy));
998+
clone.on('$destroy', function() { transcludedScope.$destroy(); });
999999
}
10001000
return clone;
10011001
};

0 commit comments

Comments
 (0)