diff --git a/source/Ox.UI/js/List/List.js b/source/Ox.UI/js/List/List.js index 32c8ccd5..178e98da 100644 --- a/source/Ox.UI/js/List/List.js +++ b/source/Ox.UI/js/List/List.js @@ -800,7 +800,7 @@ Ox.List = function(options, self) { function loadItems() { self.$pages[0].empty(); self.$items = []; - var timeC = 0, timeA = 0; + ////var timeC = 0, timeA = 0; self.options.items.forEach(function(item, pos) { // fixme: duplicated var time0 = +new Date(); @@ -810,16 +810,16 @@ Ox.List = function(options, self) { position: pos, unique: self.options.unique }); - timeC += +new Date() - time0; + ////timeC += +new Date() - time0; isSelected(pos) && self.$items[pos].addClass('OxSelected'); - var time0 = +new Date(); + ////var time0 = +new Date(); self.$items[pos].appendTo(self.$pages[0]); - timeA += +new Date() - time0; + ////timeA += +new Date() - time0; }); // timeout needed so that height is present setTimeout(fillFirstPage, 0); self.selected.length && scrollToPosition(self.selected[0]); - Ox.Log('List', 'CONSTRUCT:', timeC, 'APPEND:', timeA); + ////Ox.Log('List', 'CONSTRUCT:', timeC, 'APPEND:', timeA); that.triggerEvent('init', {items: self.options.items.length}); // fixme: do sync lists need to trigger init? }