if(!isNode){ obj[funcName] = function(){      return joinpoint.run.apply(joinpoint, arguments); } }else{ obj[funcName] = function(){ var args = []; 
if(!isNode){ obj[funcName] = function(){      return joinpoint.run.apply(joinpoint, arguments); } }else{ obj[funcName] = function(){ var args = []; 
dojo.event.MethodJoinPoint.getForMethod = function(/*Object*/obj, /*String*/funcName){	// summary:	//		"static" class function for returning a MethodJoinPoint from a	//		scoped function. If one doesn't exist, one is created.	// obj:	//		the scope to search for the function in	// funcName:	//		the name of the function to return a MethodJoinPoint for	if(!obj){ obj = dj_global; }	var ofn = obj[funcName];	if(!ofn){		// supply a do-nothing method implementation		ofn = obj[funcName] = function(){};		if(!obj[funcName]){			// e.g. cannot add to inbuilt objects in IE6			dojo.raise("Cannot set do-nothing method on that object "+funcName);		}	}else if((typeof ofn != "function")&&(!dojo.lang.isFunction(ofn))&&(!dojo.lang.isAlien(ofn))){		// FIXME: should we throw an exception here instead?		return null; 	}	// we hide our joinpoint instance in obj[funcName + '$joinpoint']	var jpname = funcName + "$joinpoint";	var jpfuncname = funcName + "$joinpoint$method";	var joinpoint = obj[jpname];	if(!joinpoint){		var isNode = false;		if(dojo.event["browser"]){			if( (obj["attachEvent"])||				(obj["nodeType"])||				(obj["addEventListener"]) ){				isNode = true;				dojo.event.browser.addClobberNodeAttrs(obj, [jpname, jpfuncname, funcName]);			}		}		var origArity = ofn.length;		obj[jpfuncname] = ofn;		// joinpoint = obj[jpname] = new dojo.event.MethodJoinPoint(obj, funcName);		joinpoint = obj[jpname] = new dojo.event.MethodJoinPoint(obj, jpfuncname);		if(!isNode){			obj[funcName] = function(){ 				// var args = [];				// for(var x=0; x<arguments.length; x++){					// args.push(arguments[x]);				// }				// return joinpoint.run.apply(joinpoint, args); 				return joinpoint.run.apply(joinpoint, arguments); 			}		}else{			obj[funcName] = function(){ 				var args = [];				if(!arguments.length){					var evt = null;					try{						if(obj.ownerDocument){							evt = obj.ownerDocument.parentWindow.event;						}else if(obj.documentElement){							evt = obj.documentElement.ownerDocument.parentWindow.event;						}else if(obj.event){ //obj is a window							evt = obj.event;						}else{							evt = window.event;						}					}catch(e){						evt = window.event;					}					if(evt){						args.push(dojo.event.browser.fixEvent(evt, this));					}				}else{					for(var x=0; x<arguments.length; x++){						if((x==0)&&(dojo.event.browser.isEvent(arguments[x]))){							args.push(dojo.event.browser.fixEvent(arguments[x], this));						}else{							args.push(arguments[x]);						}					}				}				// return joinpoint.run.apply(joinpoint, arguments); 				return joinpoint.run.apply(joinpoint, args); 			}		}		obj[funcName].__preJoinArity = origArity;	}	return joinpoint; // dojo.event.MethodJoinPoint}
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/2f1d2cb699c9d9329e8b782b0463156e211cb0f6/struts_dojo.js.uncompressed.js/buggy/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js