uidesigner/com.nokia.sdt.component.symbian.test/data/scripts/transientGlobals2.js
author Chad Peckham <chad.peckham@nokia.com>
Thu, 04 Mar 2010 13:41:15 -0600
branchRCL_2_4
changeset 1080 43348591c4a0
parent 0 fb279309251b
permissions -rw-r--r--
Make sure we don't remember non-switch status if only one device is connected. Also increase the timeout to get USB personalities seen on some devices.



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++);
}