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

Destroy embed before iframe is removed #6575

Merged
merged 2 commits into from
Dec 9, 2016

Conversation

dvoytenko
Copy link
Contributor

Partial for #6543.

// once destroyed embed release is implemented. See `detachedCallback`.
if (!this.element.ownerDocument.defaultView) {
const TAG = this.getName_();
dev().warn(TAG, 'request against destroyed embed: ', trigger['on']);
Copy link
Contributor

Choose a reason for hiding this comment

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

Won't this get noisy?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It'd, but not as noise as the error we are currently sending :) warns actually don't go anywhere unless explicitly enabled.

@dvoytenko
Copy link
Contributor Author

/cc @keithwrightbos @tdrl

@dvoytenko dvoytenko merged commit a90d484 into ampproject:master Dec 9, 2016
@dvoytenko dvoytenko deleted the onduty4 branch December 9, 2016 00:04
Lith pushed a commit to Lith/amphtml that referenced this pull request Dec 22, 2016
* Destroy embed before iframe is removed

* cleanup
Lith pushed a commit to Lith/amphtml that referenced this pull request Dec 22, 2016
* Destroy embed before iframe is removed

* cleanup
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.

2 participants