[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add detect for passive event listeners #1982

Merged
merged 3 commits into from
May 18, 2016

Conversation

RByers
Copy link
Contributor
@RByers RByers commented May 16, 2016

Fixes #1894

@RByers
Copy link
Contributor Author
RByers commented May 16, 2016

@patrickkettner This is my first naive attempt at modifying modernizr - let me what I'm missing. Eg. do I need to do add anything specific for testing? I verified that the test page shows 'true' in Chrome 52 and false in Firefox and that the existing tests pass on my machine.

@patrickkettner
Copy link
Member

Autobahning my way to Berlin, I'll check it out when I arrive in few hours

Thanks!

On May 16, 2016, at 10:41 PM, Rick Byers notifications@github.com wrote:

@patrickkettner This is my first naive attempt at modifying modernizr - let me what I'm missing. Eg. do I need to do add anything specific for testing? I verified that the test page shows 'true' in Chrome 52 and false in Firefox and that the existing tests pass on my machine.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

@RByers
Copy link
Contributor Author
RByers commented May 18, 2016

@paulirish, Patrick is travelling, can you review / merge?

/*!
{
"async": false,
"authors": ["Rick Byers"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we only mark async when true, you can pull this out

@patrickkettner
Copy link
Member

just the one tiny nit, otherwise lgtm!

@patrickkettner patrickkettner merged commit 5785b8a into Modernizr:master May 18, 2016
@RByers
Copy link
Contributor Author
RByers commented May 18, 2016

Great, thanks Patrick, and thanks for fixing the nit too!


define(['Modernizr'], function(Modernizr) {
Modernizr.addTest('passiveeventlisteners', function() {
var supportsPassiveOption = false;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this not be cached? Why running this over and over again?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modernizr caches all results by default

Copy link
@levino levino Oct 21, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I do not get how to access the result of this test. Cannot find it in the docs either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants