Skip to content

Commit 4265203

Browse files
committed
not using classes to fix IE11
1 parent 39b3def commit 4265203

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/types/make-maybe-test.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@ var canReflect = require("can-reflect");
77

88
QUnit.module("can-query-logic/types/make-maybe")
99

10-
class DateStringSet {
11-
constructor(value) {
12-
this.value = value;
13-
}
14-
// used to convert to a number
15-
valueOf() {
16-
return this.value == null ? this.value : new Date(this.value).getTime();
17-
}
10+
function DateStringSet(value) {
11+
this.value = value;
1812
}
13+
DateStringSet.prototype.valueOf = function() {
14+
return this.value == null ? this.value : new Date(this.value).getTime();
15+
};
1916

2017
var ComparisonSet = function(value) {
2118
this.value = value;

0 commit comments

Comments
 (0)