question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.trigger( "multiple events triggering" )

See original GitHub issue

Hi 😃

We can do this :

$( "body" ).on( "mousedown touchstart", function() { /* ... */ } );

But not this :

$( "body" ).trigger( "mousedown touchstart" );

We have to call .trigger N times.

$( "body" )
    .trigger( "mousedown" )
    .trigger( "touchstart" )
;

Why not calling .match( rnotwhite ) on the event string?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
markelogcommented, Dec 7, 2015

Discussed (or right after it) this on the meeting, sorry @Mr2, it seems as no go again 😕, maybe we can revisit it after another three years 😃

0reactions
mr21commented, Dec 8, 2015

Oh understood, no problem 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multiple events supported in a single SQL trigger - IBM
A multiple event trigger is a trigger that can handle INSERT, UPDATE, and DELETE triggering events within a single SQL trigger program.
Read more >
MySQL Multiple Triggers for the Same Event & Action Time
This tutorial shows you how to create multiple triggers for a table that have the same trigger event and action time in MySQL....
Read more >
jQuery .trigger() multiple events - javascript - Stack Overflow
trigger as my pub/sub system. However, I want to trigger multiple events in different scenarios. Is this possible to do as one string,...
Read more >
Triggering multiple events with a single trigger volume?
I'm building a level in which the player character steps into a trigger volume, prompting a formerly motionless AI NPC to start walking ......
Read more >
Multiple Events & Triggering of Workflow - SAP Community
1.You can trigger a workflow from two different events. In the triggering events tab of the workflow template, just specify the other triggering...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found