Skip to content

Ajax responseChanged return logged twice #900

Description

@alitavector

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>

Activity

  1. ebidel commented on Nov 9, 2014

    @ebidel
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions