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

Enable AMP.printState even in non-dev mode #14052

Merged
merged 1 commit into from Mar 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 2 additions & 4 deletions extensions/amp-bind/0.1/bind-impl.js
Expand Up @@ -167,10 +167,8 @@ export class Bind {
/** @private {Promise} */
this.setStatePromise_ = null;

// Expose for testing on dev.
if (getMode().development || getMode().localDev) {
AMP.printState = this.printState_.bind(this);
}
// Expose for debugging in the console.
AMP.printState = this.printState_.bind(this);
}

/** @override */
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-bind/amp-bind.md
Expand Up @@ -585,7 +585,7 @@ There are several types of runtime errors that may be encountered when working w

### Debugging State

In development mode, use `AMP.printState()` to print the current state to the console.
Use `AMP.printState()` to print the current state to the console.

## Appendix

Expand Down