Update ember-renderspeed slightly.

This commit is contained in:
Robin Ward 2013-08-05 16:20:36 -04:00
parent de3c657ea3
commit c714b98595
1 changed files with 4 additions and 6 deletions

View File

@ -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");
}
}