Skip to content

Commit

Permalink
Merge pull request #3224 from camptocamp/f_actionclick_evt_detail
Browse files Browse the repository at this point in the history
Fix ngeo.CustomEvent event detail in ngeo.Menu
  • Loading branch information
fredj authored Dec 7, 2017
2 parents b8f6ec6 + dd8f548 commit 7126402
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ol-ext/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ ngeo.Menu.prototype.close = function() {
*/
ngeo.Menu.prototype.handleActionClick_ = function(action, evt) {

this.dispatchEvent(new ngeo.CustomEvent('actionclick', action));
this.dispatchEvent(new ngeo.CustomEvent('actionclick', {
action: action
}));

if (this.autoClose_) {
this.close();
Expand Down

0 comments on commit 7126402

Please sign in to comment.