fix getType test
This commit is contained in:
parent
ea52a2c46f
commit
268fb559d9
1 changed files with 1 additions and 1 deletions
|
@ -424,7 +424,7 @@ pandora.createLinks = function($element) {
|
|||
|
||||
function getType(items) {
|
||||
var item = Ox.isArray(items[0]) ? items[0][0] : items[0];
|
||||
return Ox.contains(item, '/') ? 'clip' : 'item';
|
||||
return item && Ox.contains(item, '/') ? 'clip' : 'item';
|
||||
};
|
||||
|
||||
function removeItems(items, target, callback) {
|
||||
|
|
Loading…
Reference in a new issue