don't throw when loading new (no ui settings) edit with span

This commit is contained in:
rolux 2013-08-07 15:10:50 +00:00
parent c3fd2a31b5
commit 3233f3f695

View file

@ -198,6 +198,7 @@ pandora.URL = (function() {
if (state.span) {
var key = 'edits.' + state.item.replace(/\./g, '\\.');
set[key] = {};
if (Ox.isArray(state.span)) {
set[key + '.clip'] = '';
set[key + '.in'] = state.span[state.span.length - 2] || 0;