This repository was archived by the owner on Aug 23, 2018. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ Elm.Native.Date.make = function(localRuntime) {
1111
1212 function dateNow ( )
1313 {
14- return new window . Date ;
14+ return new Date ;
1515 }
1616
1717 function readDate ( str )
1818 {
19- var date = new window . Date ( str ) ;
19+ var date = new Date ( str ) ;
2020 return isNaN ( date . getTime ( ) )
2121 ? Result . Err ( "unable to parse '" + str + "' as a date" )
2222 : Result . Ok ( date ) ;
@@ -38,7 +38,7 @@ Elm.Native.Date.make = function(localRuntime) {
3838 second : function ( d ) { return d . getSeconds ( ) ; } ,
3939 millisecond : function ( d ) { return d . getMilliseconds ( ) ; } ,
4040 toTime : function ( d ) { return d . getTime ( ) ; } ,
41- fromTime : function ( t ) { return new window . Date ( t ) ; } ,
41+ fromTime : function ( t ) { return new Date ( t ) ; } ,
4242 dayOfWeek : function ( d ) { return { ctor :dayTable [ d . getDay ( ) ] } ; }
4343 } ;
4444
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ Elm.Native.Time.make = function(localRuntime)
103103 return localRuntime . Native . Time . values = {
104104 fpsWhen : F2 ( fpsWhen ) ,
105105 every : every ,
106- toDate : function ( t ) { return new window . Date ( t ) ; } ,
106+ toDate : function ( t ) { return new Date ( t ) ; } ,
107107 read : read
108108 } ;
109109
You can’t perform that action at this time.
0 commit comments