Ox.List: store items in self.items

This commit is contained in:
rolux 2013-12-31 13:28:36 +05:30
parent b86d2c200c
commit 1df53b7bde

View file

@ -96,7 +96,8 @@ Ox.List = function(options, self) {
} else {
if (Ox.isArray(self.options.items)) {
// FIXME: duplicated
self.options.items = Ox.api(self.options.items, {
self.items = self.options.items;
self.options.items = Ox.api(self.items, {
cache: true,
map: self.options.map,
sort: self.options.sort,
@ -131,7 +132,8 @@ Ox.List = function(options, self) {
});
if (Ox.isArray(self.options.items) && !self.options._tree) {
self.options.items = Ox.api(self.options.items, {
self.items = self.options.items;
self.options.items = Ox.api(self.items, {
cache: true,
map: self.options.map,
sort: self.options.sort,