Page 1 of 1

no code assist in inherit using call function

Posted: Thu May 27, 2010 9:03 am
by dzenbudd
Dear All,

Do you know any way to use code assist for inherit, see below:

Code: Select all

function Class10() {
	this.showSub = function(a, b) {
		alert(a - b);
	}
}
function Class11() {
	this.showAdd = function(a, b) {
		alert(a + b);
	}
}
function Class2() {
	Class10.call(this);
	Class11.call(this);
}

var c2 = new Class2();
c2.showAdd(1, 2);
c2.showSub(2, 1);

c2. // <ctrl + space> nothing appear

Re: no code assist in inherit using call function

Posted: Mon May 31, 2010 8:21 pm
by eric_suen
The code assist does not support this