Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 19ccc90

Browse files
devversionThomasBurleson
authored andcommitted
chore(): remove phantomjs dependency (#9583)
1 parent c5b5386 commit 19ccc90

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,11 @@
6464
"karma": "^1.0.0",
6565
"karma-firefox-launcher": "^1.0.0",
6666
"karma-jasmine": "^1.0.2",
67-
"karma-phantomjs-launcher": "^1.0.0",
6867
"karma-sauce-launcher": "^1.0.0",
6968
"lazypipe": "^1.0.1",
7069
"lodash": "^4.13.1",
7170
"minimist": "^1.1.0",
7271
"mkdirp": "^0.5.0",
73-
"phantomjs-prebuilt": "^2.1.7",
7472
"postcss": "^5.1.2",
7573
"prompt-sync": "^1.0.0",
7674
"q": "^1.0.1",

src/components/datepicker/js/datepickerDirective.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -552,12 +552,7 @@
552552
this.ngModelCtrl.$setValidity('valid', date == null);
553553
}
554554

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);
561556
};
562557

563558
/** Clears any error flags set by `updateErrorState`. */

0 commit comments

Comments
 (0)