diff options
| author | Misko Hevery | 2011-10-07 11:27:49 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-10-11 11:01:46 -0700 |
| commit | fd822bdaf9d04e522aaa5400b673f333190abe98 (patch) | |
| tree | 451cd26d3f7da862692d6c56e6e8f235824c180a /docs/content/api | |
| parent | 4f78fd692c0ec51241476e6be9a4df06cd62fdd6 (diff) | |
| download | angular.js-fd822bdaf9d04e522aaa5400b673f333190abe98.tar.bz2 | |
chore(formating): clean code to be function() {
Diffstat (limited to 'docs/content/api')
| -rw-r--r-- | docs/content/api/angular.inputType.ngdoc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/content/api/angular.inputType.ngdoc b/docs/content/api/angular.inputType.ngdoc index 434fe6c2..12c59989 100644 --- a/docs/content/api/angular.inputType.ngdoc +++ b/docs/content/api/angular.inputType.ngdoc @@ -40,8 +40,8 @@ All `inputType` widgets support: <doc:example> <doc:source> <script> - angular.inputType('json', function(){ - this.$parseView = function(){ + angular.inputType('json', function() { + this.$parseView = function() { try { this.$modelValue = angular.fromJson(this.$viewValue); if (this.$error.JSON) { @@ -52,12 +52,12 @@ All `inputType` widgets support: } } - this.$parseModel = function(){ + this.$parseModel = function() { this.$viewValue = angular.toJson(this.$modelValue); } }); - function Ctrl(){ + function Ctrl() { this.data = { framework:'angular', codenames:'supper-powers' @@ -81,7 +81,7 @@ All `inputType` widgets support: </div> </doc:source> <doc:scenario> - it('should invalidate on wrong input', function(){ + it('should invalidate on wrong input', function() { expect(element('form[name=myForm]').prop('className')).toMatch('ng-valid'); input('data').enter('{}'); expect(binding('data')).toEqual('data={\n }'); |
