Bug 926477 - Replace className usages with classList in browser-places.js. r=jaws

This commit is contained in:
Rene Amrhein
2013-12-12 12:37:51 -05:00
parent 1738de1d3a
commit c88e84163c

View File

@@ -102,9 +102,9 @@ var StarUI = {
this.cancelButtonOnCommand();
break;
case KeyEvent.DOM_VK_RETURN:
if (aEvent.target.className == "expander-up" ||
aEvent.target.className == "expander-down" ||
aEvent.target.id == "editBMPanel_newFolderButton") {
if (aEvent.target.classList.contains("expander-up") ||
aEvent.target.classList.contains("expander-down") ||
aEvent.target.id == "editBMPanel_newFolderButton") {
//XXX Why is this necessary? The defaultPrevented check should
// be enough.
break;