hello,
in my js file i have declared some utility functions like
usually i can call it with this.updateLP() what if i want to call it inside the onEnd function of a dojo animation like
obviously it doesn't work because "this" refers to something else now. How can i still use it?
in my js file i have declared some utility functions like
Code: Select all
updateLP:function() {
//...
},Code: Select all
dojo.animateProperty({node:"tmpcard",
properties: {
left:dest.x-rect.x,
top:dest.y-rect.y},
onEnd: function() {
this.updateLP(); //<-- doesn't work
}
}).play();