i face this serious problem and need your help.
I have define a class Parent with contructor method and extend it in Child class.
Now i want to override a method in the Parent class by calling it and add some thing more to it (see code below).
However, obviously there is no _super in Javascript. Could you please advice how to do it in servoy ?
Best regards and many thanks
Nam
- Code: Select all
/**
* @public
* @constructor
* @this {Parent}
function Parent(){
this.doSomething = function (){
application.output('do something in parent class');
}
}
/**
* @public
* @constructor
* @extends {Parent}
*/
function Child(){
this.doSomething = function (){
_super.doSomething();
application.output('do some more things in child class');
}
}
function test(){
var child = new Child();
child.doSomething();
}