Skip to content

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

@frankiefu

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>

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