fix a bug in Ox.URL

This commit is contained in:
rolux 2014-01-18 09:20:53 +00:00
parent 86e80a2229
commit b51dba0692

View file

@ -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)