forked from 0x2620/oxjs
self.setOption ~> that.update
This commit is contained in:
parent
9ee0742b53
commit
005d50c389
56 changed files with 919 additions and 933 deletions
|
|
@ -25,7 +25,12 @@ Ox.ListItem = function(options, self) {
|
|||
position: 0,
|
||||
unique: ''
|
||||
})
|
||||
.options(options || {});
|
||||
.options(options || {})
|
||||
.update({
|
||||
data: function() {
|
||||
constructItem(true);
|
||||
}
|
||||
});
|
||||
|
||||
constructItem();
|
||||
|
||||
|
|
@ -42,12 +47,6 @@ Ox.ListItem = function(options, self) {
|
|||
that.setElement($element);
|
||||
}
|
||||
|
||||
self.setOption = function(key, value) {
|
||||
if (key == 'data') {
|
||||
constructItem(true);
|
||||
}
|
||||
};
|
||||
|
||||
return that;
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue