in list/grid/timelines/clips view, immediaterly return request data from items function (we want to pass user.ui.find a.k.a. query with the list's init event)

This commit is contained in:
rolux 2013-02-16 15:00:23 +05:30
parent d520582f00
commit 8ee58da2d6

View file

@ -85,6 +85,7 @@ pandora.ui.list = function() {
pandora.api.find(Ox.extend(data, { pandora.api.find(Ox.extend(data, {
query: pandora.user.ui.find query: pandora.user.ui.find
}), callback); }), callback);
return Ox.clone(data, true);
}, },
scrollbarVisible: true, scrollbarVisible: true,
selected: pandora.user.ui.listSelection, selected: pandora.user.ui.listSelection,
@ -159,6 +160,7 @@ pandora.ui.list = function() {
pandora.api.find(Ox.extend(data, { pandora.api.find(Ox.extend(data, {
query: pandora.user.ui.find query: pandora.user.ui.find
}), callback); }), callback);
return Ox.clone(data, true);
}, },
keys: ['director', 'id', 'posterRatio', 'title', 'year'], keys: ['director', 'id', 'posterRatio', 'title', 'year'],
selected: pandora.user.ui.listSelection, selected: pandora.user.ui.listSelection,
@ -229,6 +231,7 @@ pandora.ui.list = function() {
keys: [] keys: []
} }
}), callback); }), callback);
return Ox.clone(data, true);
}, },
keys: ['clips', 'director', 'duration', 'id', 'posterRatio', 'title', 'videoRatio', 'year'], keys: ['clips', 'director', 'duration', 'id', 'posterRatio', 'title', 'videoRatio', 'year'],
selected: pandora.user.ui.listSelection, selected: pandora.user.ui.listSelection,
@ -341,6 +344,7 @@ pandora.ui.list = function() {
items: 1000000, items: 1000000,
keys: [] keys: []
}} : {})), callback); }} : {})), callback);
return Ox.clone(data, true);
}, },
keys: ['clips', 'director', 'duration', 'id', 'posterRatio', 'rendered', 'title', 'year'], keys: ['clips', 'director', 'duration', 'id', 'posterRatio', 'rendered', 'title', 'year'],
selected: pandora.user.ui.listSelection, selected: pandora.user.ui.listSelection,