From c714b985953c0948aa391974c0a59489e91e98fc Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 5 Aug 2013 16:20:36 -0400 Subject: [PATCH] Update ember-renderspeed slightly. --- app/assets/javascripts/external/ember-renderspeed.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/external/ember-renderspeed.js b/app/assets/javascripts/external/ember-renderspeed.js index 1a5c58e0d94..17312ee8272 100644 --- a/app/assets/javascripts/external/ember-renderspeed.js +++ b/app/assets/javascripts/external/ember-renderspeed.js @@ -39,8 +39,6 @@ if ((typeof console !== 'undefined') && console.groupCollapsed) { @method log **/ ProfileNode.prototype.log = function(type) { - if (this.time < 1) { return; } - var description = ""; if (this.payload) { if (this.payload.template) { @@ -83,11 +81,11 @@ if ((typeof console !== 'undefined') && console.groupCollapsed) { profileNode.time = (timestamp - profileNode.start); this.depth = profileNode.parent; - if (this.depth && (profileNode.time > 1)) { - this.depth.addChild(profileNode); - } + if (profileNode.time < 1) { return; } - if (!this.depth) { + if (this.depth) { + this.depth.addChild(profileNode); + } else { profileNode.log("Render"); } }