зеркало из https://github.com/mozilla/gecko-dev.git
Bug 885417 - Have UIDs as values for profiler sidebar items; r=vporof
This commit is contained in:
Родитель
95cc3ca47e
Коммит
7ab882c1fa
|
@ -158,7 +158,7 @@ ProfilerPanel.prototype = {
|
|||
if (!ev.detail)
|
||||
return;
|
||||
|
||||
let profile = this.profiles.get(ev.detail.attachment.uid);
|
||||
let profile = this.profiles.get(parseInt(ev.detail.value, 10));
|
||||
this.activeProfile = profile;
|
||||
|
||||
if (profile.isReady) {
|
||||
|
|
|
@ -43,9 +43,8 @@ Sidebar.prototype = Heritage.extend(WidgetMethods, {
|
|||
box.appendChild(h3);
|
||||
box.appendChild(span);
|
||||
|
||||
this.push([box], {
|
||||
this.push([box, profile.uid], {
|
||||
attachment: {
|
||||
uid: profile.uid,
|
||||
name: profile.name,
|
||||
state: PROFILE_IDLE
|
||||
}
|
||||
|
@ -57,7 +56,7 @@ Sidebar.prototype = Heritage.extend(WidgetMethods, {
|
|||
},
|
||||
|
||||
getItemByProfile: function (profile) {
|
||||
return this.getItemForPredicate(item => item.attachment.uid === profile.uid);
|
||||
return this.getItemByValue(profile.uid.toString());
|
||||
},
|
||||
|
||||
setProfileState: function (profile, state) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче