fix a bug in Ox.URL
This commit is contained in:
parent
86e80a2229
commit
b51dba0692
1 changed files with 1 additions and 1 deletions
|
@ -513,7 +513,7 @@ Ox.URL = function(options) {
|
||||||
points = Ox.contains(['date', 'duration'], spanType)
|
points = Ox.contains(['date', 'duration'], spanType)
|
||||||
&& Ox.isArray(span) && span.length == 3 && span[0] == span[1]
|
&& Ox.isArray(span) && span.length == 3 && span[0] == span[1]
|
||||||
? span.slice(1) : span;
|
? span.slice(1) : span;
|
||||||
return Ox.toArray(points).map(function(point) {
|
return Ox.makeArray(points).map(function(point) {
|
||||||
return Ox.isNumber(point) ? (
|
return Ox.isNumber(point) ? (
|
||||||
spanType == 'date' ? constructDate(point)
|
spanType == 'date' ? constructDate(point)
|
||||||
: spanType == 'duration' ? constructDuration(point)
|
: spanType == 'duration' ? constructDuration(point)
|
||||||
|
|
Loading…
Reference in a new issue