Closed jasoncodes closed 10 years ago
Makes sense. Although since the swipe events forbid delegation for performance I'd prefer to use e.currentTarget, which should be the same thing in this case. I'll accept and edit. Cheers.
Cool. I wasn’t quite sure which of currentTarget
or delegateTarget
would make most sense.
"event.target" matches the DOM element directly under the cursor. "event.delegateTarget" matches the DOM element ".on" was called on.