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

Make runtime display fallback when needed. #2546

Merged
merged 1 commit into from
Mar 11, 2016

Conversation

camelburrito
Copy link
Contributor

Closes #2261

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@@ -934,6 +934,10 @@ export function createAmpElementProto(win, name, implementationClass) {
// element, (b) some realyout is expected and (c) fallback condition would
// be rare.
this.classList.toggle('amp-notsupported', state);
const fallbackElement = this.getFallback();
Copy link
Contributor

Choose a reason for hiding this comment

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

Please only search for fallback element when state == true

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@camelburrito camelburrito force-pushed the fallback branch 2 times, most recently from c346ecb to 8351c86 Compare March 11, 2016 19:50
@camelburrito
Copy link
Contributor Author

PTAL

@dvoytenko
Copy link
Contributor

LGTM

camelburrito pushed a commit that referenced this pull request Mar 11, 2016
Make runtime display fallback when needed.
@camelburrito camelburrito merged commit 739f515 into ampproject:master Mar 11, 2016
@camelburrito camelburrito deleted the fallback branch April 8, 2016 22:31
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