Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fd822bd

Browse files
mheveryIgorMinar
authored andcommittedOct 11, 2011
chore(formating): clean code to be function() {
1 parent 4f78fd6 commit fd822bd

File tree

107 files changed

+942
-941
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+942
-941
lines changed
 

‎docs/content/api/angular.inputType.ngdoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ All `inputType` widgets support:
4040
<doc:example>
4141
<doc:source>
4242
<script>
43-
angular.inputType('json', function(){
44-
this.$parseView = function(){
43+
angular.inputType('json', function() {
44+
this.$parseView = function() {
4545
try {
4646
this.$modelValue = angular.fromJson(this.$viewValue);
4747
if (this.$error.JSON) {
@@ -52,12 +52,12 @@ All `inputType` widgets support:
5252
}
5353
}
5454

55-
this.$parseModel = function(){
55+
this.$parseModel = function() {
5656
this.$viewValue = angular.toJson(this.$modelValue);
5757
}
5858
});
5959

60-
function Ctrl(){
60+
function Ctrl() {
6161
this.data = {
6262
framework:'angular',
6363
codenames:'supper-powers'
@@ -81,7 +81,7 @@ All `inputType` widgets support:
8181
</div>
8282
</doc:source>
8383
<doc:scenario>
84-
it('should invalidate on wrong input', function(){
84+
it('should invalidate on wrong input', function() {
8585
expect(element('form[name=myForm]').prop('className')).toMatch('ng-valid');
8686
input('data').enter('{}');
8787
expect(binding('data')).toEqual('data={\n }');

‎docs/content/cookbook/advancedform.ngdoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ detection, and preventing invalid form submission.
99
<doc:example>
1010
<doc:source>
1111
<script>
12-
function UserForm(){
12+
function UserForm() {
1313
this.state = /^\w\w$/;
1414
this.zip = /^\d\d\d\d\d$/;
1515
this.master = {
@@ -28,11 +28,11 @@ detection, and preventing invalid form submission.
2828
}
2929

3030
UserForm.prototype = {
31-
cancel: function(){
31+
cancel: function() {
3232
this.form = angular.copy(this.master);
3333
},
3434

35-
save: function(){
35+
save: function() {
3636
this.master = this.form;
3737
this.cancel();
3838
}
@@ -76,7 +76,7 @@ detection, and preventing invalid form submission.
7676
</div>
7777
</doc:source>
7878
<doc:scenario>
79-
it('should enable save button', function(){
79+
it('should enable save button', function() {
8080
expect(element(':button:contains(Save)').attr('disabled')).toBeTruthy();
8181
input('form.name').enter('');
8282
expect(element(':button:contains(Save)').attr('disabled')).toBeTruthy();
@@ -85,7 +85,7 @@ detection, and preventing invalid form submission.
8585
element(':button:contains(Save)').click();
8686
expect(element(':button:contains(Save)').attr('disabled')).toBeTruthy();
8787
});
88-
it('should enable cancel button', function(){
88+
it('should enable cancel button', function() {
8989
expect(element(':button:contains(Cancel)').attr('disabled')).toBeTruthy();
9090
input('form.name').enter('change');
9191
expect(element(':button:contains(Cancel)').attr('disabled')).toBeFalsy();

0 commit comments

Comments
 (0)
Please sign in to comment.