You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing undefined as the selector, the handler is never called (Fiddle):
// ✖ Clicks are NOT handledGator(window).on('click',undefined,function(){log('Gator got click with undefined selector');});
However, it is called when selector is not passed at all (Fiddle):
// ✓ Clicks are handledGator(window).on('click',function(){log('Gator got click with undefined selector');});
Curiously enough, doing both of the above at the same time results in neither working (Fiddle):
// ✖ Clicks are NOT handledGator(window).on('click',undefined,function(){log('Gator got click with undefined selector');});// ✖ Clicks are NOT handledGator(window).on('click',function(){log('Gator got click with undefined selector');});
The text was updated successfully, but these errors were encountered:
When passing
undefined
as the selector, the handler is never called (Fiddle):However, it is called when selector is not passed at all (Fiddle):
Curiously enough, doing both of the above at the same time results in neither working (Fiddle):
The text was updated successfully, but these errors were encountered: