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

this.fire breaking in Polymer 2.0-preview branch #77

Closed
BhautikDoshi opened this issue Mar 14, 2017 · 1 comment
Closed

this.fire breaking in Polymer 2.0-preview branch #77

BhautikDoshi opened this issue Mar 14, 2017 · 1 comment

Comments

@BhautikDoshi
Copy link

We just started the migration to 2.0 after rc2. Want to move completely to 2.0 as we are in early stage.

For app-localize-behavior not sure what is the best way to use in 2.0. Found #70 but that code was not fixed. Will this be available as class expression at some point or any other alternative?. For now we have a hack to just keep instance of app-localize-behavior and redirect localize method to it. And we ran in to following issue:

Could we get a fix for this.fire in following code for 2.0 branch.

  __onRequestResponse: function(event) {
    this.resources = event.response;
    this.fire('app-localize-resources-loaded');
  },

  __onRequestError: function(event) {
    this.fire('app-localize-resources-error');
  }

Error:

image

Thanks.

@BhautikDoshi
Copy link
Author

we figured this out from:
https://www.polymer-project.org/2.0/toolbox/localize

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

No branches or pull requests

1 participant