Skip to content

Conversation

@dvoytenko
Copy link
Contributor

Closes #2577.

}

// Poll until the expression resolves correctly, but only up to a point.
const endTime = timer.now() + 2000;
Copy link
Contributor

Choose a reason for hiding this comment

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

There are a few other polling places throughout the code base. Might be time for a poll helper, with optional maxWait?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. Good idea for Timer class perhaps. Please file the bug for fixit.

Copy link
Contributor

Choose a reason for hiding this comment

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

@jridgewell jridgewell mentioned this pull request May 5, 2016
@cramforce
Copy link
Member

My eyes.

LGTM

@dvoytenko dvoytenko merged commit bb249b4 into ampproject:master May 6, 2016
@dvoytenko dvoytenko deleted the media2 branch May 6, 2016 20:57
erwinmombay pushed a commit that referenced this pull request May 6, 2016
* IE: resolve the matchMedia problem

* linter

* Protect from both min-width and max-width errors
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.

3 participants