Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit c1cb341

Browse files
committedAug 17, 2014
refactor($compile): simplify controllersBoundTransclude check
no measurable perf difference, but the code more simple and minifies better
1 parent 0605e61 commit c1cb341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/ng/compile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1643,7 +1643,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
16431643
var transcludeControllers;
16441644

16451645
// no scope passed
1646-
if (arguments.length < 2) {
1646+
if (!cloneAttachFn) {
16471647
cloneAttachFn = scope;
16481648
scope = undefined;
16491649
}

0 commit comments

Comments
 (0)
This repository has been archived.