refactor($compile): no need to use bind

This commit is contained in:
Peter Bacon Darwin
2014-05-23 11:44:45 +01:00
committed by Caitlin Potter
parent bb9310974b
commit 6f1d9f8ca6

View File

@@ -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;
};