Bug 926477 - Replace className usages with classList in browser-places.js. r=jaws
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user