Skip to content

function strings for declarative event handlers appear in the markup #378

Description

@frankiefu
<polymer-element name="x-foo">
  <template>
    <div on-tap="{{tapHandler}}">tap me!</div>
  </template>
  <script>
    Polymer('x-foo', {
      tapHandler: function() {
        console.log('tapped!')
      }
    });
  </script>
</polymer-element>

<x-foo></x-foo>

If you inspect the DOM you will see the function strings appears in the markup:

<div on-tap="function () {
        console.log('tapped!')
      }">tap me!</div>

Activity

  1. sorvell commented on Dec 16, 2013

    @sorvell
    Contributor
  2. added a commit that references this issue on Oct 31, 2014
    4652afd
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