From fd822bdaf9d04e522aaa5400b673f333190abe98 Mon Sep 17 00:00:00 2001
From: Misko Hevery
Date: Fri, 7 Oct 2011 11:27:49 -0700
Subject: chore(formating): clean code to be function() {
---
src/widget/form.js | 6 +++---
src/widget/input.js | 24 ++++++++++++------------
src/widget/select.js | 36 ++++++++++++++++++------------------
3 files changed, 33 insertions(+), 33 deletions(-)
(limited to 'src/widget')
diff --git a/src/widget/form.js b/src/widget/form.js
index bc34bf0d..b01a07ef 100644
--- a/src/widget/form.js
+++ b/src/widget/form.js
@@ -24,7 +24,7 @@
@@ -41,12 +41,12 @@
- it('should initialize to model', function(){
+ it('should initialize to model', function() {
expect(binding('text')).toEqual('guest');
expect(binding('myForm.input.$valid')).toEqual('true');
});
- it('should be invalid if empty', function(){
+ it('should be invalid if empty', function() {
input('text').enter('');
expect(binding('text')).toEqual('');
expect(binding('myForm.input.$valid')).toEqual('false');
diff --git a/src/widget/input.js b/src/widget/input.js
index f82027f4..18d1ae12 100644
--- a/src/widget/input.js
+++ b/src/widget/input.js
@@ -25,7 +25,7 @@ var INTEGER_REGEXP = /^\s*(\-|\+)?\d+\s*$/;
@@ -155,7 +155,7 @@ angularInputType('email', function() {
@@ -222,7 +222,7 @@ angularInputType('url', function() {
@@ -295,7 +295,7 @@ angularInputType('list', function() {
@@ -359,7 +359,7 @@ angularInputType('number', numericRegexpInputType(NUMBER_REGEXP, 'NUMBER'));
@@ -418,7 +418,7 @@ angularInputType('integer', numericRegexpInputType(INTEGER_REGEXP, 'INTEGER'));
@@ -604,7 +604,7 @@ var HTML5_INPUTS_TYPES = makeMap(
@@ -635,7 +635,7 @@ var HTML5_INPUTS_TYPES = makeMap(
*/
-angularWidget('input', function (inputElement){
+angularWidget('input', function(inputElement){
this.directives(true);
this.descend(true);
var modelExp = inputElement.attr('ng:model');
@@ -715,7 +715,7 @@ angularWidget('input', function (inputElement){
}
});
- forEach(['valid', 'invalid', 'pristine', 'dirty'], function (name) {
+ forEach(['valid', 'invalid', 'pristine', 'dirty'], function(name) {
widget.$watch('$' + name, function(scope, value) {
inputElement[value ? 'addClass' : 'removeClass']('ng-' + name);
}
diff --git a/src/widget/select.js b/src/widget/select.js
index f397180e..1687721c 100644
--- a/src/widget/select.js
+++ b/src/widget/select.js
@@ -66,7 +66,7 @@