minor changes

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

View file

@ -13,16 +13,16 @@ Ox.LoadingIcon <f:Ox.Element> Loading Icon Element
Ox.LoadingIcon = function(options, self) {
self = self || {};
var that = Ox.Element('<img>', self)
.defaults({
size: 'medium'
})
.options(options || {})
.attr({
src: Ox.UI.getImageURL('symbolLoading')
})
.addClass(
'OxLoadingIcon Ox' + Ox.toTitleCase(self.options.size)
);
.defaults({
size: 'medium'
})
.options(options || {})
.attr({
src: Ox.UI.getImageURL('symbolLoading')
})
.addClass(
'OxLoadingIcon Ox' + Ox.toTitleCase(self.options.size)
);
/*@
start <f> Start loading animation
() -> <f> Loading Icon Element
@ -36,7 +36,6 @@ Ox.LoadingIcon = function(options, self) {
}, 250);
return that;
};
/*@
stop <f> Stop loading animation
() -> <f> Loading Icon Element
@ -44,10 +43,11 @@ Ox.LoadingIcon = function(options, self) {
that.stop = function() {
that.animate({
opacity: 0
}, 250)
.attr({
src: Ox.UI.getImageURL('symbolLoading')
});
}, 250. function() {
.attr({
src: Ox.UI.getImageURL('symbolLoading')
});
});
return that;
};
return that;

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);
}