uidesigner/com.nokia.sdt.component.symbian.test/data/scripts/derived.js
author timkelly
Mon, 06 Apr 2009 14:24:14 -0500
changeset 54 ff58688cad6c
parent 2 d760517a8095
permissions -rw-r--r--
fix bug 8804, add unit tests
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
dcounter = 10
cawthron
parents:
diff changeset
     2
function draw(value)  {
cawthron
parents:
diff changeset
     3
	baseRet = Base.prototype.draw(value)
cawthron
parents:
diff changeset
     4
	old = dcounter
cawthron
parents:
diff changeset
     5
	dcounter += 10
cawthron
parents:
diff changeset
     6
	return baseRet + old * value;
cawthron
parents:
diff changeset
     7
	
cawthron
parents:
diff changeset
     8
}
cawthron
parents:
diff changeset
     9
function Derived() {
cawthron
parents:
diff changeset
    10
	Base.apply(this)
cawthron
parents:
diff changeset
    11
}
cawthron
parents:
diff changeset
    12
Derived.prototype = new Base;
cawthron
parents:
diff changeset
    13
cawthron
parents:
diff changeset
    14
Derived.prototype.draw = draw
cawthron
parents:
diff changeset
    15