dojo.event.MethodJoinPoint.getForMethod = function(/*Object*/obj, /*String*/funcName){        if(!obj){ obj = dj_global; } if(!obj[funcName]){  obj[funcName] = function(){}; if(!obj[funcName]){  dojo.raise("Cannot set do-nothing method on that object "+funcName); } }else if((!dojo.lang.isFunction(obj[funcName]))&&(!dojo.lang.isAlien(obj[funcName]))){  return null; }  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 = obj[funcName].length; obj[jpfuncname] = obj[funcName];  joinpoint = obj[jpname] = new dojo.event.MethodJoinPoint(obj, jpfuncname); obj[funcName] = function(){ var args = [];  if((isNode)&&(!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){ 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)&&(isNode)&&(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, args); } obj[funcName].__preJoinArity = origArity; } return joinpoint; 
dojo.event.MethodJoinPoint.getForMethod=function(obj,_498){ if(!obj){ obj=dj_global; 
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; }  if(!obj[funcName]){    // supply a do-nothing method implementation    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((!dojo.lang.isFunction(obj[funcName]))&&(!dojo.lang.isAlien(obj[funcName]))){    // 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 = obj[funcName].length;    obj[jpfuncname] = obj[funcName];    // joinpoint = obj[jpname] = new dojo.event.MethodJoinPoint(obj, funcName);    joinpoint = obj[jpname] = new dojo.event.MethodJoinPoint(obj, jpfuncname);    obj[funcName] = function(){       var args = [];      if((isNode)&&(!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)&&(isNode)&&(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/90939f35f46f873d9b1f5c5f818ecf012711dc71/dojo.js/buggy/src/main/resources/org/apache/struts2/static/dojo/dojo.js