Closed EvHaus closed 10 years ago
These lines:
if ( elem[ type ] ) { elem[ type ](); } else
At the top of dispatchEvent cause issues when trying to simulate Ctrl + Clicks. If you remove that if statement, everything works correctly. Here is the code that doesn't work correctly:
$(document.body).simulate('click', {ctrlKey: true});
Furthermore, looking at https://github.com/jquery/jquery-ui/blob/master/tests/jquery.simulate.js I see that those lines are not present. How come they were added in this repository?
Duplicate of #22.
These lines:
At the top of dispatchEvent cause issues when trying to simulate Ctrl + Clicks. If you remove that if statement, everything works correctly. Here is the code that doesn't work correctly:
Furthermore, looking at https://github.com/jquery/jquery-ui/blob/master/tests/jquery.simulate.js I see that those lines are not present. How come they were added in this repository?