1
0
Fork 0
forked from 0x2620/oxjs

minor changes

This commit is contained in:
rlx 2012-01-17 23:04:33 +05:30
commit 3acc606fa2
2 changed files with 23 additions and 25 deletions

View file

@ -22,14 +22,14 @@ Ox.ListItem = function(options, self) {
self = self || {};
var that = Ox.Element({}, self)
.defaults({
construct: null,
data: {},
draggable: false,
position: 0,
unique: ''
})
.options(options || {});
.defaults({
construct: null,
data: {},
draggable: false,
position: 0,
unique: ''
})
.options(options || {});
constructItem();
@ -42,9 +42,7 @@ Ox.ListItem = function(options, self) {
});
if (update) {
that.$element.hasClass('OxSelected') && $element.addClass('OxSelected');
// that.$element.replaceWith($element);
}
// that.$element = $element;
that.setElement($element);
}