forked from 0x2620/pandora
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) {
|
function getType(items) {
|
||||||
var item = Ox.isArray(items[0]) ? items[0][0] : items[0];
|
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) {
|
function removeItems(items, target, callback) {
|
||||||
|
|
Loading…
Reference in a new issue