T
tuka
Hi,
I have 2 methods defined within a javascript objects
that I would like to call in a third function within the same object.
In the example below, func3 works well in FF but in IE7 it breaks.
Any suggestions about how this may work ? I am sure this has to do
with notation.
I am calling the methods statically - so not instantiating a objects
first.
TIA,
Tuka
i.e.
in a prototype object
this.func1 = function(args) {
//do stuff
}
this.func2 = function(args) {
//do stuff
}
this.func3 = function(args) {
this.func1();
this.func2();
}
I have 2 methods defined within a javascript objects
that I would like to call in a third function within the same object.
In the example below, func3 works well in FF but in IE7 it breaks.
Any suggestions about how this may work ? I am sure this has to do
with notation.
I am calling the methods statically - so not instantiating a objects
first.
TIA,
Tuka
i.e.
in a prototype object
this.func1 = function(args) {
//do stuff
}
this.func2 = function(args) {
//do stuff
}
this.func3 = function(args) {
this.func1();
this.func2();
}