зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1172408 - When checking if a marker details element has an action on click, pass in the marker details container so that we don't ascend up to the document, throwing an error. r=vp
This commit is contained in:
Родитель
0157d6479c
Коммит
acbfa0b449
|
@ -102,7 +102,7 @@ MarkerDetails.prototype = {
|
|||
* for the moment.
|
||||
*/
|
||||
_onClick: function (e) {
|
||||
let data = findActionFromEvent(e.target);
|
||||
let data = findActionFromEvent(e.target, this._parent);
|
||||
if (!data) {
|
||||
return;
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ MarkerDetails.prototype = {
|
|||
};
|
||||
|
||||
/**
|
||||
* Take an element from an event `target`, and asend through
|
||||
* Take an element from an event `target`, and ascend through
|
||||
* the DOM, looking for an element with a `data-action` attribute. Return
|
||||
* the parsed `data-action` value found, or null if none found before
|
||||
* reaching the parent `container`.
|
||||
|
|
Загрузка…
Ссылка в новой задаче