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

Ajax responseChanged return logged twice #900

Closed
alitavector opened this issue Nov 9, 2014 · 1 comment
Closed

Ajax responseChanged return logged twice #900

alitavector opened this issue Nov 9, 2014 · 1 comment

Comments

@alitavector
Copy link

From the chrome dev tool, it seem to log output the "test" message twice each times the submit button is press.

...
<core-ajax id="ajax" method="POST" url="r.php" params="{{item}}" response="{{response}}"></core-ajax>
    <template repeat="{{response}}">{{data}}</template>
    {{response}}
    <br>
  </template>
  <script>
    Polymer('add-node', {
      created: function() {
        this.item = {};
      },
      doSend: function() {
        this.$.ajax.go();
      },
      responseChanged: function() {
        console.log("test");
      }
    });
  </script>
@ebidel
Copy link
Contributor

ebidel commented Nov 9, 2014

This issue was moved to googlearchive/core-ajax#43

@ebidel ebidel closed this as completed Nov 9, 2014
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

2 participants