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 Vojta Jina
parent d414b78717
commit 6e15462267

View File

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