uidesigner/com.nokia.sdt.component.symbian.test/data/scripts/transientGlobals2.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
cawthron
parents:
diff changeset
     2
cawthron
parents:
diff changeset
     3
function Proto () {
cawthron
parents:
diff changeset
     4
	this.counter = 1;
cawthron
parents:
diff changeset
     5
	this.globalString = "InstanceVar";
cawthron
parents:
diff changeset
     6
}
cawthron
parents:
diff changeset
     7
cawthron
parents:
diff changeset
     8
Proto.prototype = new Object()
cawthron
parents:
diff changeset
     9
cawthron
parents:
diff changeset
    10
function extra() {
cawthron
parents:
diff changeset
    11
	anotherglobal = 3;
cawthron
parents:
diff changeset
    12
}
cawthron
parents:
diff changeset
    13
cawthron
parents:
diff changeset
    14
Proto.prototype.myfunc = function() {
cawthron
parents:
diff changeset
    15
	var oo = inst;
cawthron
parents:
diff changeset
    16
	
cawthron
parents:
diff changeset
    17
	myglobal = 2;
cawthron
parents:
diff changeset
    18
	extra();
cawthron
parents:
diff changeset
    19
	
cawthron
parents:
diff changeset
    20
	this.foo = 3;
cawthron
parents:
diff changeset
    21
	
cawthron
parents:
diff changeset
    22
	return this.globalString + (this.counter++);
cawthron
parents:
diff changeset
    23
}