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

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

Closed
frankiefu opened this issue Dec 16, 2013 · 1 comment
Closed

Comments

@frankiefu
Copy link
Member

<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>
@sorvell
Copy link
Contributor

sorvell commented Dec 16, 2013

Fixed via googlearchive/polymer-dev@4652afd

@sorvell sorvell closed this as completed Dec 16, 2013
nevir pushed a commit to nevir/polymer that referenced this issue Oct 31, 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