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 {
|
} else {
|
||||||
if (Ox.isArray(self.options.items)) {
|
if (Ox.isArray(self.options.items)) {
|
||||||
// FIXME: duplicated
|
// FIXME: duplicated
|
||||||
self.options.items = Ox.api(self.options.items, {
|
self.items = self.options.items;
|
||||||
|
self.options.items = Ox.api(self.items, {
|
||||||
cache: true,
|
cache: true,
|
||||||
map: self.options.map,
|
map: self.options.map,
|
||||||
sort: self.options.sort,
|
sort: self.options.sort,
|
||||||
|
@ -131,7 +132,8 @@ Ox.List = function(options, self) {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (Ox.isArray(self.options.items) && !self.options._tree) {
|
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,
|
cache: true,
|
||||||
map: self.options.map,
|
map: self.options.map,
|
||||||
sort: self.options.sort,
|
sort: self.options.sort,
|
||||||
|
|
Loading…
Reference in a new issue