Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c1cb341

Browse files
committed
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

Lines changed: 1 addition & 1 deletion
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)