mirror of
https://github.com/jquery/jquery.git
synced 2026-02-07 03:14:58 -05:00
Fix #11315. Selector for .on() is relative to delegateTarget.
This fixes a regresssion from 1.6.4. Be aware that nearly every place that this bug comes into play, the selector in use is incredibly inefficient.
This commit is contained in:
@@ -384,7 +384,7 @@ jQuery.event = {
|
||||
|
||||
// Pregenerate a single jQuery object for reuse with .is()
|
||||
jqcur = jQuery(this);
|
||||
jqcur.context = this.ownerDocument || this;
|
||||
jqcur.context = this;
|
||||
|
||||
for ( cur = event.target; cur != this; cur = cur.parentNode || this ) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user