This repository was archived by the owner on Sep 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
src/components/datepicker/js Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change 64
64
"karma" : " ^1.0.0" ,
65
65
"karma-firefox-launcher" : " ^1.0.0" ,
66
66
"karma-jasmine" : " ^1.0.2" ,
67
- "karma-phantomjs-launcher" : " ^1.0.0" ,
68
67
"karma-sauce-launcher" : " ^1.0.0" ,
69
68
"lazypipe" : " ^1.0.1" ,
70
69
"lodash" : " ^4.13.1" ,
71
70
"minimist" : " ^1.1.0" ,
72
71
"mkdirp" : " ^0.5.0" ,
73
- "phantomjs-prebuilt" : " ^2.1.7" ,
74
72
"postcss" : " ^5.1.2" ,
75
73
"prompt-sync" : " ^1.0.0" ,
76
74
"q" : " ^1.0.1" ,
Original file line number Diff line number Diff line change 552
552
this . ngModelCtrl . $setValidity ( 'valid' , date == null ) ;
553
553
}
554
554
555
- // TODO(jelbourn): Change this to classList.toggle when we stop using PhantomJS in unit tests
556
- // because it doesn't conform to the DOMTokenList spec.
557
- // See https://github.com/ariya/phantomjs/issues/12782.
558
- if ( ! this . ngModelCtrl . $valid ) {
559
- this . inputContainer . classList . add ( INVALID_CLASS ) ;
560
- }
555
+ angular . element ( this . inputContainer ) . toggleClass ( INVALID_CLASS , ! this . ngModelCtrl . $valid ) ;
561
556
} ;
562
557
563
558
/** Clears any error flags set by `updateErrorState`. */
You can’t perform that action at this time.
0 commit comments