equal
deleted
inserted
replaced
7 |
7 |
8 |
8 |
9 /* provide our own custom date parser since the default |
9 /* provide our own custom date parser since the default |
10 * one only understands iso8601 and gregorian dates |
10 * one only understands iso8601 and gregorian dates |
11 */ |
11 */ |
12 Timeline.NativeDateUnit.getParser = function(format) { |
12 SimileAjax.NativeDateUnit.getParser = Timeline.NativeDateUnit.getParser = function(format) { |
13 if (typeof format == "string") { |
13 if (typeof format == "string") { |
14 if (format.indexOf('%') != -1) { |
14 if (format.indexOf('%') != -1) { |
15 return function(datestring) { |
15 return function(datestring) { |
16 if (datestring) { |
16 if (datestring) { |
17 return strptime(datestring, format); |
17 return strptime(datestring, format); |