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

sticky-ad use render-start API #5298

Merged
merged 2 commits into from Sep 30, 2016

Conversation

zhouyx
Copy link
Contributor

@zhouyx zhouyx commented Sep 29, 2016

I messed up with the other PR. So I created a new one which is easier for me....

refactor from #4284
Work for #4283

Copy link
Contributor

@lannka lannka left a comment

Choose a reason for hiding this comment

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

LGTM with minor comments

* For ad type that don't support render-start, wait for 1 sec.
* @private
*/
delayAdLoad_() {
Copy link
Contributor

Choose a reason for hiding this comment

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

since this is only called by layoutAd_, we can merge it into layoutAd_. Both methods are very short.

return getAmpStickyAd().then(obj => {
const stickyAdElement = obj.ampStickyAd;
const impl = stickyAdElement.implementation_;
impl.ad_.isBuilt = function() {
Copy link
Contributor

Choose a reason for hiding this comment

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

use () => for function

@zhouyx
Copy link
Contributor Author

zhouyx commented Sep 30, 2016

fixed

@zhouyx zhouyx merged commit 2e4286a into ampproject:master Sep 30, 2016
@zhouyx zhouyx deleted the sticky-ad-use-render-start branch September 30, 2016 18:18
dreamofabear pushed a commit to dreamofabear/amphtml that referenced this pull request Oct 4, 2016
dreamofabear pushed a commit to dreamofabear/amphtml that referenced this pull request Oct 4, 2016
dreamofabear pushed a commit to dreamofabear/amphtml that referenced this pull request Oct 12, 2016
mityaha pushed a commit to ooyala/amphtml that referenced this pull request Nov 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants