use [].concat, not Ox.merge

This commit is contained in:
rolux 2012-05-24 10:22:56 +02:00
commit ee160efa3d
24 changed files with 85 additions and 90 deletions

View file

@ -7,7 +7,7 @@ pandora.ui.listDialog = function(section) {
section = section || 'general';
var width = getWidth(section);
var listData = pandora.getListData(),
tabs = Ox.merge([
tabs = [].concat([
{id: 'general', title: 'General'},
{id: 'icon', title: 'Icon'}
], listData.type == 'smart'
@ -494,8 +494,7 @@ pandora.ui.listIconPanel = function(listData) {
items: function(data, callback) {
pandora.api.find(Ox.extend(data, {
query: {
conditions: Ox.merge(
[{key: 'list', value: listData.id, operator: '=='}],
conditions: [{key: 'list', value: listData.id, operator: '=='}].concat(
value !== '' ? [{key: key, value: value, operator: '='}] : []
),
operator: '&'