uidesigner/com.nokia.sdt.component.symbian.test/data/scripts/transientGlobals2.js
author timkelly
Thu, 21 May 2009 11:38:31 -0500 (2009-05-21)
changeset 185 a0a675250e30
parent 0 fb279309251b
permissions -rw-r--r--
Use LinkedHashMap instead of Map to preserve build include order. Add test to insure expected order


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