Bug 900763 - "edit conditional breakpoint". r=jlong

This patch updates the Source Editor contextmenu's UX. Prior to the
patch, the menu would show the option "Add conditional breakpoint" even
when there was a conditional breakpoint. Now, that option reads "Edit
conditional breakpoint".
This commit is contained in:
Jason Laster
2016-03-23 07:22:00 +01:00
parent 1a6dec1838
commit c0fc818edd
5 changed files with 39 additions and 1 deletions

View File

@@ -337,6 +337,8 @@ Editor.prototype = {
if (typeof popup == "string") {
popup = el.ownerDocument.getElementById(this.config.contextMenu);
}
this.emit("popupOpen", ev, popup);
popup.openPopupAtScreen(ev.screenX, ev.screenY, true);
}, false);