From 4004f4a247a1459bab4b066018d32eca23c754e0 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 7 Feb 2014 11:07:53 +0000 Subject: [PATCH] comment out profiling --- source/Ox.UI/js/List/List.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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? }