Richard Gibson
Richard Gibson
Follow-up from today's meeting: Before this PR, codepath branches hinge on `window.requestAnimationFrame`: - if truthy: `window.requestAnimationFrame( function() { …; jQuery.fx.tick(); } )` - else: `window.setInterval( jQuery.fx.tick, jQuery.fx.interval )` So even...
The problem seems to be that `offsetHeight` and `offsetWidth` aren't affected by negative margins. We should be able to account for that in `boxModelAdjustment`.
It seems like there's a `.clone` issue (which might not be fixable), and a separate selector issue. I hope to fix the selector issue by abandoning `getElementsByTagName`.
Plumbing-wise, this seems very feasible (just extra data to pass to `addEventListener` and some extra code in [jQuery.Event.prototype.preventDefault](https://github.com/jquery/jquery/blob/1de834672959636da8c06263c3530226b17a84c3/src/event.js#L591-L599)) and degrades gracefully (worse performance, and successful effects from calls you promised...
> It's a _lot_ more plumbing than that if we support capture. So let's not consider capture in this proposal at all. Yes. To make it absolutely explicit, this ticket...
The DOM spec is making increasing use of event listener options ([passive](https://github.com/whatwg/dom/commit/253a21b8e78e37447c47983916a7cf39c4f6a3c5) late last year, [invoke-once](https://github.com/whatwg/dom/commit/e002d7811533e276c9927b237748c4e170f4cb10) last month, and [delegation](https://github.com/whatwg/dom/issues/215) likely soon). I think we should get on board with...
I feel like my position has been misconstrued. ~~I~~ @scottgonzalez [proposed](https://github.com/jquery/jquery/issues/2871#issuecomment-175175098) that the interface for adding passive listeners would be `.on( eventTypes, listener, { passive: true } )` (and I...
I am very much opposed to introduce new jQuery-specific syntax for standardized behavior.
This is at the interplay of a few different issues, including #3000 and https://github.com/jquery/jquery/issues/3465#issuecomment-268943456 . `jQuery.when( singleArg )` is analogous to `Promise.resolve( singleArg )`, and is expected to "unwrap" thenables...
Once upon a time, there was a ticket to make _more_ such methods: http://bugs.jquery.com/ticket/12851 I don't know if that's enough to save these, though.