I am using polymer framework for my project in which i'm declaring a
function callback in properties and trying to call it from another function
showTargetColorDialog() .But on accessing it i'm getting an error
Uncaught TypeError: this.callback is not a function
Please have a look into this.
Polymer({
is: "parent-dom",
properties: {
people: {
type: String,
value: "df"
},
item: {
type: String,
value: "asdf",
notify: true
},
callback: {
type: Object,
value: function(index) {
console.log("Inside callback function");
}
},
},
showTargetColorDialog: function(e) {
this.callback("sadf");
}});
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/545cc3b3-f8f7-45ae-b3aa-f3dae4c42e66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.