I have an element that contains a dom-repeat, but the template for the dom-repeat is from the element's Light DOM. (hope I've used the terms correctly)
<dom-module id="my-list">
<template>
<content></content>
<template id="repeater" is="dom-repeat" items="items">
</template>
</template>
</dom-module>
To initialize the dom-repeat I do this:
ready: function() {
this.$.repeater.templatize(Polymer.dom(this).querySelector("template"));
}
And to use my-list, from another element, I have this:
<my-list>
<template>
<paper-item on-click="_clicked">Click Me</paper-item>
</template>
</my-list>
But when I click the item, I get the following error:
[my-list::_createEventHandler]: listener method `_clicked` not defined
For some reason, it is looking for the method in the my-list element, not in the element that it's part of.
iron-list doesn't have this issue. Any ideas how I can solve this?