Bug 1194503 - make appendNotification not set accesskey="undefined" if passed a structure with no accesskey, r=gijs

--HG--
extra : commitid : 9JUxylKErLp
extra : histedit_source : 21111a242a741a43c68c8449f3908ae1edef2ab3
This commit is contained in:
YFdyh000 2015-08-13 21:38:00 +01:00
Родитель 4f2be0b5a2
Коммит 98a1db3247
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -122,7 +122,8 @@
var button = aButtons[b];
var buttonElem = document.createElementNS(XULNS, "button");
buttonElem.setAttribute("label", button.label);
buttonElem.setAttribute("accesskey", button.accessKey);
if (typeof button.accessKey == "string")
buttonElem.setAttribute("accesskey", button.accessKey);
if (typeof button.type == "string") {
buttonElem.setAttribute("type", button.type);
if ((button.type == "menu-button" || button.type == "menu") &&