Ox.List: store items in self.items
This commit is contained in:
parent
b86d2c200c
commit
1df53b7bde
1 changed files with 4 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue