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

Commit 20cd4aa

Browse files
committed
style(*): adding function names for debugging
1 parent aac3c4a commit 20cd4aa

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/ng/compile.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1826,7 +1826,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
18261826
return value || null;
18271827
} else if (isArray(require)) {
18281828
value = [];
1829-
forEach(require, function(require) {
1829+
forEach(require, function getControllersEach(require) {
18301830
value.push(getControllers(directiveName, require, $element, elementControllers));
18311831
});
18321832
}
@@ -1861,7 +1861,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
18611861
// TODO: merge `controllers` and `elementControllers` into single object.
18621862
controllers = {};
18631863
elementControllers = {};
1864-
forEach(controllerDirectives, function(directive) {
1864+
forEach(controllerDirectives, function nodeLinkControllers(directive) {
18651865
var locals = {
18661866
$scope: directive === newIsolateScopeDirective || directive.$$isolateScope ? isolateScope : scope,
18671867
$element: $element,
@@ -1902,7 +1902,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
19021902
isolateBindingContext = isolateScopeController.instance;
19031903
}
19041904

1905-
forEach(isolateScope.$$isolateBindings = newIsolateScopeDirective.$$isolateBindings, function(definition, scopeName) {
1905+
forEach(isolateScope.$$isolateBindings = newIsolateScopeDirective.$$isolateBindings, function nodeLinkIsolated(definition, scopeName) {
19061906
var attrName = definition.attrName,
19071907
optional = definition.optional,
19081908
mode = definition.mode, // @, =, or &
@@ -1974,7 +1974,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
19741974
});
19751975
}
19761976
if (controllers) {
1977-
forEach(controllers, function(controller) {
1977+
forEach(controllers, function nodeLinkInitController(controller) {
19781978
controller();
19791979
});
19801980
controllers = null;

src/ng/controller.js

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

src/ng/directive/input.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3093,7 +3093,7 @@ var ngValueDirective = function() {
30933093
var ngModelOptionsDirective = function() {
30943094
return {
30953095
restrict: 'A',
3096-
controller: ['$scope', '$attrs', function($scope, $attrs) {
3096+
controller: ['$scope', '$attrs', function NgModelOptionsController($scope, $attrs) {
30973097
var that = this;
30983098
this.$options = $scope.$eval($attrs.ngModelOptions);
30993099
// Allow adding/overriding bound events

0 commit comments

Comments
 (0)