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

Skip to content

Commit 6b7b40a

Browse files
committed
style(ngBind): name anonymous link fn to ease debugging/profiling
1 parent edc586f commit 6b7b40a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ng/directive/ngBind.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@
5252
</example>
5353
*/
5454
var ngBindDirective = ngDirective({
55-
compile: function(templateElement) {
55+
compile: function ngBindCompile(templateElement) {
5656
templateElement.addClass('ng-binding');
57-
return function (scope, element, attr) {
57+
58+
return function ngBindLink(scope, element, attr) {
5859
element.data('$binding', attr.ngBind);
5960
scope.$watch(attr.ngBind, function ngBindWatchAction(value) {
6061
// We are purposefully using == here rather than === because we want to

0 commit comments

Comments
 (0)