Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MUR Drupal
d3-library
Commits
ed987d06
Commit
ed987d06
authored
Mar 03, 2013
by
Mike Bostock
Browse files
Fix ISO date parsing on Safari 5.
parent
7dbb732a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
10 deletions
+12
-10
component.json
component.json
+1
-1
d3.js
d3.js
+2
-2
d3.min.js
d3.min.js
+4
-4
package.json
package.json
+1
-1
src/core/core.js
src/core/core.js
+1
-1
src/time/format-iso.js
src/time/format-iso.js
+3
-1
No files found.
component.json
View file @
ed987d06
{
"name"
:
"d3"
,
"version"
:
"3.0.
7
"
,
"version"
:
"3.0.
8
"
,
"main"
:
"./d3.js"
}
d3.js
View file @
ed987d06
d3
=
function
()
{
var
π
=
Math
.
PI
,
ε
=
1
e
-
6
,
d3
=
{
version
:
"
3.0.
7
"
version
:
"
3.0.
8
"
},
d3_radians
=
π
/
180
,
d3_degrees
=
180
/
π
,
d3_document
=
document
,
d3_window
=
window
;
function
d3_target
(
d
)
{
return
d
.
target
;
...
...
@@ -7521,7 +7521,7 @@ d3 = function() {
return
format
;
};
var
d3_time_formatIso
=
d3
.
time
.
format
.
utc
(
"
%Y-%m-%dT%H:%M:%S.%LZ
"
);
d3
.
time
.
format
.
iso
=
Date
.
prototype
.
toISOString
?
d3_time_formatIsoNative
:
d3_time_formatIso
;
d3
.
time
.
format
.
iso
=
Date
.
prototype
.
toISOString
&&
+
new
Date
(
"
2000-01-01T00:00:00.000Z
"
)
?
d3_time_formatIsoNative
:
d3_time_formatIso
;
function
d3_time_formatIsoNative
(
date
)
{
return
date
.
toISOString
();
}
...
...
d3.min.js
View file @
ed987d06
This source diff could not be displayed because it is too large. You can
view the blob
instead.
package.json
View file @
ed987d06
{
"name"
:
"d3"
,
"version"
:
"3.0.
7
"
,
"version"
:
"3.0.
8
"
,
"description"
:
"A small, free JavaScript library for manipulating documents based on data."
,
"keywords"
:
[
"dom"
,
...
...
src/core/core.js
View file @
ed987d06
var
π
=
Math
.
PI
,
ε
=
1
e
-
6
,
d3
=
{
version
:
"
3.0.
7
"
},
// semver
d3
=
{
version
:
"
3.0.
8
"
},
// semver
d3_radians
=
π
/
180
,
d3_degrees
=
180
/
π
,
d3_document
=
document
,
...
...
src/time/format-iso.js
View file @
ed987d06
var
d3_time_formatIso
=
d3
.
time
.
format
.
utc
(
"
%Y-%m-%dT%H:%M:%S.%LZ
"
);
d3
.
time
.
format
.
iso
=
Date
.
prototype
.
toISOString
?
d3_time_formatIsoNative
:
d3_time_formatIso
;
d3
.
time
.
format
.
iso
=
Date
.
prototype
.
toISOString
&&
+
new
Date
(
"
2000-01-01T00:00:00.000Z
"
)
?
d3_time_formatIsoNative
:
d3_time_formatIso
;
function
d3_time_formatIsoNative
(
date
)
{
return
date
.
toISOString
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment