@@ -45,7 +45,7 @@ class NgModel extends NgControl implements AttachAware {
45
45
46
46
NgModel (this ._scope, NgElement element, Injector injector, NodeAttrs attrs,
47
47
Animate animate)
48
- : super (element, injector, animate)
48
+ : super (element, injector, animate)
49
49
{
50
50
_expression = attrs["ng-model" ];
51
51
watchCollection = false ;
@@ -355,7 +355,8 @@ class InputTextLike {
355
355
if (value == null ) value = '' ;
356
356
357
357
var currentValue = typedValue;
358
- if (value != currentValue && ! (value is num && currentValue is num && value.isNaN && currentValue.isNaN)) {
358
+ if (value != currentValue && ! (value is num && currentValue is num &&
359
+ value.isNaN && currentValue.isNaN)) {
359
360
typedValue = value;
360
361
}
361
362
});
@@ -480,7 +481,9 @@ class NgBindTypeForDateLike {
480
481
@NgAttr ('ng-bind-type' )
481
482
void set idlAttrKind (final String _kind) {
482
483
String kind = _kind == null ? DEFAULT : _kind.toLowerCase ();
483
- if (! VALID_VALUES .contains (kind)) throw "Unsupported ng-bind-type attribute value '$_kind '; " "it should be one of $VALID_VALUES " ;
484
+ if (! VALID_VALUES .contains (kind))
485
+ throw "Unsupported ng-bind-type attribute value '$_kind '; "
486
+ "it should be one of $VALID_VALUES " ;
484
487
_idlAttrKind = kind;
485
488
}
486
489
@@ -583,14 +586,16 @@ class NgBindTypeForDateLike {
583
586
@Decorator (selector: 'input[type=month][ng-model]' , module: InputDateLike .moduleFactory)
584
587
@Decorator (selector: 'input[type=week][ng-model]' , module: InputDateLike .moduleFactory)
585
588
class InputDateLike {
586
- static Module moduleFactory () => new Module ()..factory (NgBindTypeForDateLike , (Injector i) => new NgBindTypeForDateLike (i.get (dom.Element )));
589
+ static Module moduleFactory () => new Module ()..factory (NgBindTypeForDateLike ,
590
+ (Injector i) => new NgBindTypeForDateLike (i.get (dom.Element )));
587
591
final dom.InputElement inputElement;
588
592
final NgModel ngModel;
589
593
final NgModelOptions ngModelOptions;
590
594
final Scope scope;
591
595
NgBindTypeForDateLike ngBindType;
592
596
593
- InputDateLike (dom.Element this .inputElement, this .ngModel, this .scope, this .ngBindType, this .ngModelOptions) {
597
+ InputDateLike (dom.Element this .inputElement, this .ngModel, this .scope,
598
+ this .ngBindType, this .ngModelOptions) {
594
599
if (inputElement.type == 'datetime-local' ) {
595
600
ngBindType.idlAttrKind = NgBindTypeForDateLike .NUMBER ;
596
601
}
@@ -744,14 +749,17 @@ class NgFalseValue {
744
749
* `009` , `00A` , `00Z` , `010` , and so on using more than 3 characters for the
745
750
* name when the counter overflows.
746
751
*/
747
- @Decorator (selector: 'input[type=radio][ng-model]' , module: NgValue .moduleFactory)
752
+ @Decorator (
753
+ selector: 'input[type=radio][ng-model]' ,
754
+ module: NgValue .moduleFactory)
748
755
class InputRadio {
749
756
final dom.RadioButtonInputElement radioButtonElement;
750
757
final NgModel ngModel;
751
758
final NgValue ngValue;
752
759
final Scope scope;
753
760
754
- InputRadio (dom.Element this .radioButtonElement, this .ngModel, this .scope, this .ngValue, NodeAttrs attrs) {
761
+ InputRadio (dom.Element this .radioButtonElement, this .ngModel,
762
+ this .scope, this .ngValue, NodeAttrs attrs) {
755
763
// If there's no "name" set, we'll set a unique name. This ensures
756
764
// less surprising behavior about which radio buttons are grouped together.
757
765
if (attrs['name' ] == '' || attrs['name' ] == null ) {
0 commit comments