Bug 1498797 - fix 'ReferenceError: event is not defined' when clicking on attachments tab in event dialog. r=MakeMyDay
authorMartin Schroeder <mschroeder@mozilla.x-home.org>
Sat, 13 Oct 2018 17:00:49 +0200
changeset 33369 70bb0f355a9667d7d2e21cfc851ce6d7ba0c02fb
parent 33368 8539fb6b4605326b58b7f2c5a4b54ed2234baad4
child 33370 c12b2ee90c46b9ec5ee6807f81221e60009bb272
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
reviewersMakeMyDay
bugs1498797
Bug 1498797 - fix 'ReferenceError: event is not defined' when clicking on attachments tab in event dialog. r=MakeMyDay
calendar/lightning/content/lightning-item-iframe.js
--- a/calendar/lightning/content/lightning-item-iframe.js
+++ b/calendar/lightning/content/lightning-item-iframe.js
@@ -2447,17 +2447,17 @@ function attachmentDblClick(aEvent) {
  * @param aEvent     The DOM event caused by the clicking.
  */
 function attachmentClick(aEvent) {
     let item = document.popupNode;
     while (item && item.localName != "richlistbox" && item.localName != "richlistitem") {
         item = item.parentNode;
     }
 
-    for (let node of event.target.children) {
+    for (let node of aEvent.target.children) {
         if (item.localName == "richlistitem" || node.id == "attachment-popup-attachPage") {
             showElement(node);
         } else {
             hideElement(node);
         }
     }
 }