out of anonymous function code assist in Extjs

Bug Reports and Fixes
Post Reply
beyaz
Posts: 3
Joined: Sun Feb 14, 2010 9:10 am

out of anonymous function code assist in Extjs

Post by beyaz » Sat Mar 13, 2010 5:11 pm

Hi. My profile is Extjs in spket. Problem is here

Code: Select all


Byz = {    /**
		 * @returns {Function}
		 */
		get:function(/*String*/key)
		{   
		   return function(){ return this[key]; };
		},
		set:function( /*String*/ key)
		{
		    return function(value){ this[key] = value; };
		}};


(function(){
Byz.UserInfo = Ext.extend(Object,{
	 	/**
	 	 * @return {String}
	 	 */
	 	getUserName:Byz.get("userName") 	
 	});
   

    var o = new Byz.UserInfo();
   o.getUserName();  // working as function good ! 
 	
 })();

  var o2 = new Byz.UserInfo();
   o2.getUserName();  // not working as function but working like a field 

Any solution ?

eric_suen
Site Admin
Posts: 678
Joined: Wed Sep 28, 2005 7:00 am
Contact:

Post by eric_suen » Sun Mar 14, 2010 2:30 am

Thanks for report this bug

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest