Skip to content

Commit ffa7015

Browse files
committed
- (Bug Fix) Fixed an issue where the clock wouldn't instantiate properly if a date object was passed to it
1 parent a15c1d1 commit ffa7015

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/flipclock/js/libs/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var FlipClock;
2323
*/
2424

2525
FlipClock = function(obj, digit, options) {
26-
if(typeof digit == "object") {
26+
if(digit instanceof Object && digit instanceof Date === false) {
2727
options = digit;
2828
digit = 0;
2929
}

0 commit comments

Comments
 (0)