Skip to content

A unified placeholder and fallback system for layout.#602

Merged
dvoytenko merged 1 commit intoampproject:masterfrom
dvoytenko:placeholder2
Oct 14, 2015
Merged

A unified placeholder and fallback system for layout.#602
dvoytenko merged 1 commit intoampproject:masterfrom
dvoytenko:placeholder2

Conversation

@dvoytenko
Copy link
Copy Markdown
Contributor

/cc @erwinmombay

Closes #406.

Notable changes:

  1. Placeholder/fallback code is refactored from BaseElement to AmpElement to allow earlier workflows to take place before BaseElement is upgraded.
  2. Placeholder is consistently now toggled off once the first layout is complete. Overrideable by subclasses (e.g. amp-anim).
  3. A new spec file created specifically for layout and all its attributes.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

reosurces -> resources

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Are you running jaro-winkler in your head? :) Done.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

i have a plugin 😉

@erwinmombay
Copy link
Copy Markdown
Member

@dvoytenko can you rebase? I'll LGTM right after

@dvoytenko
Copy link
Copy Markdown
Contributor Author

@erwinmombay rebased. PTAL.

@erwinmombay
Copy link
Copy Markdown
Member

LGTM.

dvoytenko added a commit that referenced this pull request Oct 14, 2015
A unified placeholder and fallback system for layout.
@dvoytenko dvoytenko merged commit 0d3eb98 into ampproject:master Oct 14, 2015
@dvoytenko dvoytenko deleted the placeholder2 branch October 14, 2015 18:30
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.

4 participants