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

Commit 6f1d9f8

Browse files
petebacondarwincaitp
authored andcommitted
refactor($compile): no need to use bind
1 parent bb93109 commit 6f1d9f8

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
@@ -978,7 +978,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
978978

979979
var clone = transcludeFn(transcludedScope, cloneFn, controllers);
980980
if (scopeCreated) {
981-
clone.on('$destroy', bind(transcludedScope, transcludedScope.$destroy));
981+
clone.on('$destroy', function() { transcludedScope.$destroy(); });
982982
}
983983
return clone;
984984
};

0 commit comments

Comments
 (0)