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



function Proto () {
	this.counter = 1;
	this.globalString = "InstanceVar";
}

Proto.prototype = new Object()

function extra() {
	anotherglobal = 3;
}

Proto.prototype.myfunc = function() {
	var oo = inst;
	
	myglobal = 2;
	extra();
	
	this.foo = 3;
	
	return this.globalString + (this.counter++);
}