Backed out changeset 6b0e836a33a9 (bug 1316265) for leaks in Linux x64 devtools tests. r=backout

This commit is contained in:
Sebastian Hengst
2016-12-20 19:35:54 +01:00
parent 3115bb8104
commit 098c830dc0
3 changed files with 10 additions and 209 deletions

View File

@@ -27,24 +27,16 @@ define(function (require, exports, module) {
},
getTitle: function (grip) {
let title = "function ";
if (grip.isGenerator) {
title = "function* ";
}
if (grip.isAsync) {
title = "async " + title;
}
if (this.props.objectLink) {
return this.props.objectLink({
object: grip
}, title);
}, "function ");
}
return title;
return "";
},
summarizeFunction: function (grip) {
let name = grip.userDisplayName || grip.displayName || grip.name || "";
let name = grip.userDisplayName || grip.displayName || grip.name || "function";
return cropString(name + "()", 100);
},