Skip to content

Pingback implementation#1294

Merged
dvoytenko merged 1 commit intoampproject:masterfrom
dvoytenko:access5
Jan 5, 2016
Merged

Pingback implementation#1294
dvoytenko merged 1 commit intoampproject:masterfrom
dvoytenko:access5

Conversation

@dvoytenko
Copy link
Copy Markdown
Contributor

No description provided.

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.

Nice, maybe add doc:
The promise will be resolved when a view of this document has occurred. It will be rejected if the current render should not be counted as a view.

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.

Done

@dvoytenko
Copy link
Copy Markdown
Contributor Author

@cramforce All done. PTAL.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there for a reason for preferring undefined over null? The type hint could be shorter with {?Promise}...

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.

Yeah, in this case undefined/null doesn't matter. I switched to null

@cramforce
Copy link
Copy Markdown
Member

LGTM with one stylistic comment from Justin remaining.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All the registering below could be wrapped into this resolver to avoid the deferred pattern.

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.

Done

dvoytenko added a commit that referenced this pull request Jan 5, 2016
@dvoytenko dvoytenko merged commit 26d7cd7 into ampproject:master Jan 5, 2016
@dvoytenko dvoytenko deleted the access5 branch January 5, 2016 23:38
@dparikh dparikh mentioned this pull request Oct 1, 2020
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