Sometimes I need to overwrite methods e.g. from FormItem.js file.
It's possible when in load_skin.js we redefine method e.g.
isc.FormItem.addMethods({
//some method
})
Generally it works, but it doesn't work where in the body of the overwritten method, invocation of some other methods from source class exists.
These methods are distinctive, their names start with _ (underscore).
e.g.
var linkElement = this._getIconLinkElement(icon),
imgElement = this._getIconImgElement(icon);
When such invocation occurs then javascript exception is thrown with exception message like the following: this._getIconLinkElement(icon) is not a function.
What does underscore in the method's name mean ?
Is it a private method or something like that ?
It's possible when in load_skin.js we redefine method e.g.
isc.FormItem.addMethods({
//some method
})
Generally it works, but it doesn't work where in the body of the overwritten method, invocation of some other methods from source class exists.
These methods are distinctive, their names start with _ (underscore).
e.g.
var linkElement = this._getIconLinkElement(icon),
imgElement = this._getIconImgElement(icon);
When such invocation occurs then javascript exception is thrown with exception message like the following: this._getIconLinkElement(icon) is not a function.
What does underscore in the method's name mean ?
Is it a private method or something like that ?
Comment