I am trying to create a dojo class that contains functions that in turn call other functions in this class, as follows:
dojo.provide("my.drawing"); dojo.declare("my.drawing", null, { constructor: function(/* Object */args){ dojo.safeMixin(this, args); this.container = args[0]; }, addPoint: function(event){
The above (trimmed) code should add a dot to the dojo.gfx surface. When I try to start it, I get the following console error:
Uncaught TypeError: Object
The addPoint (event) function is called correctly, but it fails when it tries to reference the addAbsPoint (x, y) function in the same object. Is this possible in dojo? How can i do this?
source share