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

Commit 4d97f98

Browse files
committed
style(*): adding function names for debugging
1 parent 2cd5b4e commit 4d97f98

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/ng/compile.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,7 +1770,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
17701770
return value || null;
17711771
} else if (isArray(require)) {
17721772
value = [];
1773-
forEach(require, function(require) {
1773+
forEach(require, function getControllersEach(require) {
17741774
value.push(getControllers(directiveName, require, $element, elementControllers));
17751775
});
17761776
}
@@ -1799,7 +1799,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
17991799
// TODO: merge `controllers` and `elementControllers` into single object.
18001800
controllers = {};
18011801
elementControllers = {};
1802-
forEach(controllerDirectives, function(directive) {
1802+
forEach(controllerDirectives, function nodeLinkControllers(directive) {
18031803
var locals = {
18041804
$scope: directive === newIsolateScopeDirective || directive.$$isolateScope ? isolateScope : scope,
18051805
$element: $element,
@@ -1840,7 +1840,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
18401840
isolateBindingContext = isolateScopeController.instance;
18411841
}
18421842

1843-
forEach(isolateScope.$$isolateBindings = newIsolateScopeDirective.$$isolateBindings, function(definition, scopeName) {
1843+
forEach(isolateScope.$$isolateBindings = newIsolateScopeDirective.$$isolateBindings, function nodeLinkIsolated(definition, scopeName) {
18441844
var attrName = definition.attrName,
18451845
optional = definition.optional,
18461846
mode = definition.mode, // @, =, or &
@@ -1912,7 +1912,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
19121912
});
19131913
}
19141914
if (controllers) {
1915-
forEach(controllers, function(controller) {
1915+
forEach(controllers, function nodeLinkInitController(controller) {
19161916
controller();
19171917
});
19181918
controllers = null;

src/ng/controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function $ControllerProvider() {
6868
* It's just a simple call to {@link auto.$injector $injector}, but extracted into
6969
* a service, so that one can override this service with [BC version](https://gist.github.com/1649788).
7070
*/
71-
return function(expression, locals, later, ident) {
71+
return function $controller(expression, locals, later, ident) {
7272
// PRIVATE API:
7373
// param `later` --- indicates that the controller's constructor is invoked at a later time.
7474
// If true, $controller will allocate the object with the correct

src/ng/directive/input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2992,7 +2992,7 @@ var ngValueDirective = function() {
29922992
var ngModelOptionsDirective = function() {
29932993
return {
29942994
restrict: 'A',
2995-
controller: ['$scope', '$attrs', function($scope, $attrs) {
2995+
controller: ['$scope', '$attrs', function NgModelOptionsController($scope, $attrs) {
29962996
var that = this;
29972997
this.$options = $scope.$eval($attrs.ngModelOptions);
29982998
// Allow adding/overriding bound events

0 commit comments

Comments
 (0)