fix getType test

This commit is contained in:
rolux 2013-08-04 11:30:02 +00:00
parent ea52a2c46f
commit 268fb559d9

View file

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