comment out profiling
This commit is contained in:
parent
f8563d0b22
commit
4004f4a247
1 changed files with 5 additions and 5 deletions
|
@ -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?
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue