Bug 1345773 - Don't call updatePreview for TabAttrModified events for the "select" attribute, r=dao

MozReview-Commit-ID: 9GSnGxJoNne

--HG--
extra : rebase_source : 0ecdc19cc6d28c60ab8cc13447db1186225dbb56
This commit is contained in:
Subhdeep Saha 2017-03-09 21:06:35 +05:30
Родитель 39d5de7cfe
Коммит d18ed51d75
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -474,10 +474,10 @@ var ctrlTab = {
this._initRecentlyUsedTabs();
break;
case "TabAttrModified":
// tab attribute modified (i.e. label, busy, image, selected)
// tab attribute modified (i.e. label, busy, image)
// update preview only if tab attribute modified in the list
if (event.detail.changed.some(
(elem, ind, arr) => ["label", "busy", "image", "selected"].includes(elem))) {
(elem, ind, arr) => ["label", "busy", "image"].includes(elem))) {
for (let i = this.previews.length - 1; i >= 0; i--) {
if (this.previews[i]._tab && this.previews[i]._tab == event.target) {
this.updatePreview(this.previews[i], event.target);