mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 11:37:38 +08:00
refactor($compile): no need to use bind
This commit is contained in:
committed by
Caitlin Potter
parent
bb9310974b
commit
6f1d9f8ca6
@@ -978,7 +978,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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user