Skip to content

Commit 6f1d9f8

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ng/compile.js

Lines changed: 1 addition & 1 deletion
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)