diff options
Diffstat (limited to 'src/ng/directive')
| -rw-r--r-- | src/ng/directive/booleanAttrs.js | 4 | ||||
| -rw-r--r-- | src/ng/directive/directives.js | 2 | ||||
| -rw-r--r-- | src/ng/directive/form.js | 2 | ||||
| -rw-r--r-- | src/ng/directive/input.js | 6 | ||||
| -rw-r--r-- | src/ng/directive/ngInclude.js | 2 | ||||
| -rw-r--r-- | src/ng/directive/select.js | 2 |
6 files changed, 9 insertions, 9 deletions
diff --git a/src/ng/directive/booleanAttrs.js b/src/ng/directive/booleanAttrs.js index c9f286fb..e25b259c 100644 --- a/src/ng/directive/booleanAttrs.js +++ b/src/ng/directive/booleanAttrs.js @@ -282,7 +282,7 @@ forEach(BOOLEAN_ATTR, function(propName, attrName) { ngAttributeAliasDirectives[normalized] = function() { return { priority: 100, - compile: function(tpl, attr) { + compile: function() { return function(scope, element, attr) { attr.$$observers[attrName] = []; scope.$watch(attr[normalized], function(value) { @@ -301,7 +301,7 @@ forEach(['src', 'href'], function(attrName) { ngAttributeAliasDirectives[normalized] = function() { return { priority: 99, // it needs to run after the attributes are interpolated - compile: function(tpl, attr) { + compile: function() { return function(scope, element, attr) { var value = attr[normalized]; if (value == undefined) { diff --git a/src/ng/directive/directives.js b/src/ng/directive/directives.js index 123645f9..aa316533 100644 --- a/src/ng/directive/directives.js +++ b/src/ng/directive/directives.js @@ -8,4 +8,4 @@ function ngDirective(directive) { } directive.restrict = directive.restrict || 'AC'; return valueFn(directive); -}; +} diff --git a/src/ng/directive/form.js b/src/ng/directive/form.js index ecb47ebe..5f1cc1d2 100644 --- a/src/ng/directive/form.js +++ b/src/ng/directive/form.js @@ -6,7 +6,7 @@ var nullFormCtrl = { $removeControl: noop, $setValidity: noop, $setDirty: noop -} +}; /** * @ngdoc object diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js index 6366f901..250a4520 100644 --- a/src/ng/directive/input.js +++ b/src/ng/directive/input.js @@ -477,7 +477,7 @@ function textInputType(scope, element, attr, ctrl, $sniffer, $browser) { ctrl.$parsers.push(maxLengthValidator); ctrl.$formatters.push(maxLengthValidator); } -}; +} function numberInputType(scope, element, attr, ctrl, $sniffer, $browser) { textInputType(scope, element, attr, ctrl, $sniffer, $browser); @@ -584,7 +584,7 @@ function radioInputType(scope, element, attr, ctrl) { scope.$apply(function() { ctrl.$setViewValue(attr.value); }); - }; + } }); ctrl.$render = function() { @@ -840,7 +840,7 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', 'ngModel', '$e this.$invalid = false; } } else { - toggleValidCss(false) + toggleValidCss(false); this.$invalid = true; this.$valid = false; invalidCount++; diff --git a/src/ng/directive/ngInclude.js b/src/ng/directive/ngInclude.js index 13a090a4..9796b4e1 100644 --- a/src/ng/directive/ngInclude.js +++ b/src/ng/directive/ngInclude.js @@ -82,7 +82,7 @@ var ngIncludeDirective = ['$http', '$templateCache', '$anchorScroll', '$compile' onloadExp = attr.onload || '', autoScrollExp = attr.autoscroll; - return function(scope, element, attr) { + return function(scope, element) { var changeCounter = 0, childScope; diff --git a/src/ng/directive/select.js b/src/ng/directive/select.js index 384b312e..49137b33 100644 --- a/src/ng/directive/select.js +++ b/src/ng/directive/select.js @@ -421,7 +421,7 @@ var selectDirective = ['$compile', '$parse', function($compile, $parse) { while(optionGroupsCache.length > groupIndex) { optionGroupsCache.pop()[0].element.remove(); } - }; + } } } } |
