Type: Posts; User: irishbeer
nice thraddash ! :)
Thanks jamesbcox1980 , but it still doesn't do what I need... I need to overwrite a CLASS method... so that all the other JS that use obj = new MYCLASS() will work with my new class... I do not have...
yep... I've tried but it didn.t work... and you are right... prototype cannot override....
I could... but I cannot as that class is used in files that I do not have access to... my HTML import few js: one.js two.js tree.js one.js defines MyClass and two.js and tree.js uses...
nop.... it erases all the other methods... tks
Hi all. I have a class in a file js: MyClass = function() { this.myMethod = function() { alert("Please.... override me"); }