forked from 0x2620/pandora
typo
This commit is contained in:
parent
37fd6c5296
commit
dea3672679
1 changed files with 1 additions and 1 deletions
|
@ -1071,7 +1071,7 @@ pandora.getSpan = function(state, val, callback) {
|
||||||
var isArray = Ox.isArray(val),
|
var isArray = Ox.isArray(val),
|
||||||
isName, isVideoView, canBeAnnotation, canBeEvent, canBePlace;
|
isName, isVideoView, canBeAnnotation, canBeEvent, canBePlace;
|
||||||
if (isArray) {
|
if (isArray) {
|
||||||
pandora.api.get({id: state.item}, keys: ['duration']}, function(result) {
|
pandora.api.get({id: state.item, keys: ['duration']}, function(result) {
|
||||||
state.span = val.map(function(number) {
|
state.span = val.map(function(number) {
|
||||||
return Math.min(number, result.data.duration);
|
return Math.min(number, result.data.duration);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue