uidesigner/com.nokia.sdt.component.symbian.test/data/scripts/transientGlobals3.js
author fturovic <frank.turovich@nokia.com>
Thu, 14 May 2009 16:28:33 -0500
changeset 152 9e83cc047260
parent 0 fb279309251b
permissions -rw-r--r--
bug 8066 - revised image and option description for dynamic variants


globalString = "ScriptGlobal";

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

Proto.prototype = new Object()

function extra() {
	anotherglobal = 3;
}

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