Skip to content

Commit

Permalink
Fix the recurrence on the click event
Browse files Browse the repository at this point in the history
  • Loading branch information
dulacp committed Jan 17, 2016
1 parent 7f54560 commit 23f4148
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/scripts/scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@ Merci.";
}

// simulate click
var event = document.createEvent('HTMLEvents');
event.initEvent('click', true, false);
el.dispatchEvent(event);
// var event = document.createEvent('HTMLEvents');
// event.initEvent('click', true, false);
// el.dispatchEvent(event);
window.open(targetUrl);
} else {
// no target url, so we open the modal view for copy/paste
mouvy.showModal(e.target, function(modal) {
Expand Down

0 comments on commit 23f4148

Please sign in to comment.