mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-05-30 18:14:07 +08:00
refactor($compile): no need to use bind
This commit is contained in:
committed by
Vojta Jina
parent
d414b78717
commit
6e15462267
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user