uidesigner/com.nokia.sdt.component.symbian.test/data/scripts/transientGlobals3.js
changeset 2 d760517a8095
equal deleted inserted replaced
-1:000000000000 2:d760517a8095
       
     1 
       
     2 globalString = "ScriptGlobal";
       
     3 
       
     4 function Proto () {
       
     5 	this.counter = 1;
       
     6 }
       
     7 
       
     8 Proto.prototype = new Object()
       
     9 
       
    10 function extra() {
       
    11 	anotherglobal = 3;
       
    12 }
       
    13 
       
    14 Proto.prototype.myfunc = function() {
       
    15 	var oo = inst;
       
    16 	
       
    17 	myglobal = 2;
       
    18 	extra();
       
    19 	
       
    20 	this.foo = 3;
       
    21 	
       
    22 	return globalString + (this.counter++);
       
    23 }