From 3acc606fa2b0ac06f686f134c982024fedcbecc8 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Tue, 17 Jan 2012 23:04:33 +0530 Subject: [PATCH] minor changes --- source/Ox.UI/js/Core/Ox.LoadingIcon.js | 30 +++++++++++++------------- source/Ox.UI/js/List/Ox.ListItem.js | 18 +++++++--------- 2 files changed, 23 insertions(+), 25 deletions(-) diff --git a/source/Ox.UI/js/Core/Ox.LoadingIcon.js b/source/Ox.UI/js/Core/Ox.LoadingIcon.js index 21c9cd79..5f03cba1 100644 --- a/source/Ox.UI/js/Core/Ox.LoadingIcon.js +++ b/source/Ox.UI/js/Core/Ox.LoadingIcon.js @@ -13,16 +13,16 @@ Ox.LoadingIcon Loading Icon Element Ox.LoadingIcon = function(options, self) { self = self || {}; var that = Ox.Element('', 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 Start loading animation () -> Loading Icon Element @@ -36,7 +36,6 @@ Ox.LoadingIcon = function(options, self) { }, 250); return that; }; - /*@ stop Stop loading animation () -> 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; diff --git a/source/Ox.UI/js/List/Ox.ListItem.js b/source/Ox.UI/js/List/Ox.ListItem.js index a03695c6..59e0b640 100644 --- a/source/Ox.UI/js/List/Ox.ListItem.js +++ b/source/Ox.UI/js/List/Ox.ListItem.js @@ -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); }