Update ember-renderspeed slightly.

This commit is contained in:
Robin Ward 2013-08-05 16:20:36 -04:00
parent de3c657ea3
commit c714b98595

View File

@ -39,8 +39,6 @@ if ((typeof console !== 'undefined') && console.groupCollapsed) {
@method log @method log
**/ **/
ProfileNode.prototype.log = function(type) { ProfileNode.prototype.log = function(type) {
if (this.time < 1) { return; }
var description = ""; var description = "";
if (this.payload) { if (this.payload) {
if (this.payload.template) { if (this.payload.template) {
@ -83,11 +81,11 @@ if ((typeof console !== 'undefined') && console.groupCollapsed) {
profileNode.time = (timestamp - profileNode.start); profileNode.time = (timestamp - profileNode.start);
this.depth = profileNode.parent; this.depth = profileNode.parent;
if (this.depth && (profileNode.time > 1)) { if (profileNode.time < 1) { return; }
this.depth.addChild(profileNode);
}
if (!this.depth) { if (this.depth) {
this.depth.addChild(profileNode);
} else {
profileNode.log("Render"); profileNode.log("Render");
} }
} }