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

--HG--
extra : rebase_source : 3449c06897fe204c27654aab25e30ff1db8d4960
This commit is contained in:
Rene Amrhein 2013-12-12 12:37:51 -05:00
parent 9ec64872fa
commit f6e5602bcf

View File

@ -102,8 +102,8 @@ var StarUI = {
this.cancelButtonOnCommand();
break;
case KeyEvent.DOM_VK_RETURN:
if (aEvent.target.className == "expander-up" ||
aEvent.target.className == "expander-down" ||
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.