We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In dwv/src/tools/draw.js
this.execute = function () { ... // callback this.onExecute({'type': 'draw-create', 'id': group.id}); };
The group.id is Kinetic.Factory.addOverloadedGetterSetter.constructor.(anonymous function)
addOverloadedGetterSetter: function(constructor, attr) { var capitalizedAttr = Kinetic.Util._capitalize(attr), setter = SET + capitalizedAttr, getter = GET + capitalizedAttr; constructor.prototype[attr] = function() { // setting if (arguments.length) { this[setter](arguments[0]); return this; } // getting else { return this[getter](); } }; },
When I call this function from the listener 'this' is not the group.
Maybe, the code should be like the below
this.execute = function () { ... // callback this.onExecute({'type': 'draw-create', 'id': group.id()}); };
The text was updated successfully, but these errors were encountered:
544fd6b
No branches or pull requests
In dwv/src/tools/draw.js
The group.id is Kinetic.Factory.addOverloadedGetterSetter.constructor.(anonymous function)
When I call this function from the listener 'this' is not the group.
Maybe, the code should be like the below
The text was updated successfully, but these errors were encountered: