@@ -1839,7 +1839,7 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
1839
1839
* state (ng-pristine class). A model is considered to be pristine when the model has not been changed
1840
1840
* from when first compiled within then form.
1841
1841
*/
1842
- this . $setPristine = function ( ) {
1842
+ this . $setPristine = function ( ) {
1843
1843
ctrl . $dirty = false ;
1844
1844
ctrl . $pristine = true ;
1845
1845
$animate . removeClass ( $element , DIRTY_CLASS ) ;
@@ -1908,13 +1908,13 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
1908
1908
* angular.module('cancel-update-example', [])
1909
1909
*
1910
1910
* .controller('CancelUpdateController', ['$scope', function($scope) {
1911
- * $scope.resetWithCancel = function (e) {
1911
+ * $scope.resetWithCancel = function(e) {
1912
1912
* if (e.keyCode == 27) {
1913
1913
* $scope.myForm.myInput1.$rollbackViewValue();
1914
1914
* $scope.myValue = '';
1915
1915
* }
1916
1916
* };
1917
- * $scope.resetWithoutCancel = function (e) {
1917
+ * $scope.resetWithoutCancel = function(e) {
1918
1918
* if (e.keyCode == 27) {
1919
1919
* $scope.myValue = '';
1920
1920
* }
@@ -2405,7 +2405,7 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
2405
2405
.controller('ExampleController', ['$scope', function($scope) {
2406
2406
var _name = 'Brian';
2407
2407
$scope.user = {
2408
- name: function (newName) {
2408
+ name: function(newName) {
2409
2409
if (angular.isDefined(newName)) {
2410
2410
_name = newName;
2411
2411
}
@@ -2907,7 +2907,7 @@ var ngValueDirective = function() {
2907
2907
.controller('ExampleController', ['$scope', function($scope) {
2908
2908
$scope.user = { name: 'say', data: '' };
2909
2909
2910
- $scope.cancel = function (e) {
2910
+ $scope.cancel = function(e) {
2911
2911
if (e.keyCode == 27) {
2912
2912
$scope.userForm.userName.$rollbackViewValue();
2913
2913
}
@@ -2981,7 +2981,7 @@ var ngValueDirective = function() {
2981
2981
.controller('ExampleController', ['$scope', function($scope) {
2982
2982
var _name = 'Brian';
2983
2983
$scope.user = {
2984
- name: function (newName) {
2984
+ name: function(newName) {
2985
2985
return angular.isDefined(newName) ? (_name = newName) : _name;
2986
2986
}
2987
2987
};
0 commit comments