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:
Jordan Santell 2015-07-16 15:40:23 -07:00
Родитель 0157d6479c
Коммит acbfa0b449
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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`.