Bug 885417 - Have UIDs as values for profiler sidebar items; r=vporof

This commit is contained in:
Anton Kovalyov 2013-07-16 11:41:36 -07:00
Родитель 95cc3ca47e
Коммит 7ab882c1fa
2 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -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) {