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:
Dave Methvin
2012-06-26 20:36:00 -04:00
parent ad2221853f
commit 94e744aec9
2 changed files with 15 additions and 1 deletions

View File

@@ -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 ) {