this.getImplementationName = function(widgetName, ns){ /* * Locate an implementation (constructor) for 'widgetName' in namespace 'ns' * widgetNames are case INSENSITIVE * * 1. Return value from implementation cache, if available, for quick turnaround. * 2. Locate a namespace registration for 'ns' * 3. If no namespace found, register the conventional one (ns.widget) * 4. Allow the namespace resolver (if any) to load a module for this widget. * 5. Permute the widget name and capable rendering prefixes to locate, cache, and return *    an appropriate widget implementation. * 6. If no implementation is found, attempt to load the namespace manifest, *    and then look again for an implementation to cache and return. * 7. Use the deprecated widgetPackages registration system to attempt to locate the widget * 8. Fail */ var lowerCaseWidgetName = widgetName.toLowerCase();   ns=ns||"dojo";  var imps = knownWidgetImplementations[ns] || (knownWidgetImplementations[ns]={});  var impl = imps[lowerCaseWidgetName]; if(impl){ return impl; }   if(!renderPrefixCache.length){ buildPrefixCache(); }   var nsObj = dojo.ns.get(ns); if(!nsObj){  dojo.ns.register(ns, ns + '.widget'); nsObj = dojo.ns.get(ns); }   if(nsObj){nsObj.resolve(widgetName);}   impl = findImplementation(lowerCaseWidgetName, nsObj.module); if(impl){return(imps[lowerCaseWidgetName] = impl)};   nsObj = dojo.ns.require(ns); if((nsObj)&&(nsObj.resolver)){ nsObj.resolve(widgetName); impl = findImplementation(lowerCaseWidgetName, nsObj.module); if(impl){return(imps[lowerCaseWidgetName] = impl)}; }   dojo.deprecated('dojo.widget.Manager.getImplementationName', 'Could not locate widget implementation for "' + widgetName + '" in "' + nsObj.module + '" registered to namespace "' + nsObj.name + '". ' + "Developers must specify correct namespaces for all non-Dojo widgets", "0.5");     for(var i=0; i<widgetPackages.length; i++){ impl = findImplementation(lowerCaseWidgetName, widgetPackages[i]); if(impl){return(imps[lowerCaseWidgetName] = impl)}; }  throw new Error('Could not locate widget implementation for "' + widgetName + '" in "' + nsObj.module + '" registered to namespace "' + nsObj.name + '"'); } 
this.getImplementationName=function(_8e8,ns){ var _8ea=_8e8.toLowerCase(); ns=ns||"dojo"; var imps=_8cf[ns]||(_8cf[ns]={}); var impl=imps[_8ea]; if(impl){ return impl; } if(!_8b7.length){ buildPrefixCache(); } var _8ed=dojo.ns.get(ns); if(!_8ed){ dojo.ns.register(ns,ns+".widget"); _8ed=dojo.ns.get(ns); } if(_8ed){ _8ed.resolve(_8e8); } impl=_8e4(_8ea,_8ed.module); if(impl){ return (imps[_8ea]=impl); } _8ed=dojo.ns.require(ns); if((_8ed)&&(_8ed.resolver)){ _8ed.resolve(_8e8); impl=_8e4(_8ea,_8ed.module); if(impl){ return (imps[_8ea]=impl); } } dojo.deprecated("dojo.widget.Manager.getImplementationName","Could not locate widget implementation for \""+_8e8+"\" in \""+_8ed.module+"\" registered to namespace \""+_8ed.name+"\". "+"Developers must specify correct namespaces for all non-Dojo widgets","0.5"); for(var i=0;i<_8d0.length;i++){ impl=_8e4(_8ea,_8d0[i]); if(impl){ return (imps[_8ea]=impl); } } throw new Error("Could not locate widget implementation for \""+_8e8+"\" in \""+_8ed.module+"\" registered to namespace \""+_8ed.name+"\""); }; 
  this.getImplementationName = function(widgetName, ns){    /*     * Locate an implementation (constructor) for 'widgetName' in namespace 'ns'      * widgetNames are case INSENSITIVE     *      * 1. Return value from implementation cache, if available, for quick turnaround.     * 2. Locate a namespace registration for 'ns'     * 3. If no namespace found, register the conventional one (ns.widget)     * 4. Allow the namespace resolver (if any) to load a module for this widget.     * 5. Permute the widget name and capable rendering prefixes to locate, cache, and return      *    an appropriate widget implementation.     * 6. If no implementation is found, attempt to load the namespace manifest,     *    and then look again for an implementation to cache and return.     * 7. Use the deprecated widgetPackages registration system to attempt to locate the widget     * 8. Fail     */    var lowerCaseWidgetName = widgetName.toLowerCase();    // default to dojo namespace    ns=ns||"dojo";    // use cache if available    var imps = knownWidgetImplementations[ns] || (knownWidgetImplementations[ns]={});    //if(!knownWidgetImplementations[ns]){knownWidgetImplementations[ns]={};}    var impl = imps[lowerCaseWidgetName];    if(impl){      return impl;    }        // (one time) store a list of the render prefixes we are capable of rendering    if(!renderPrefixCache.length){      buildPrefixCache();    }    // lookup namespace    var nsObj = dojo.ns.get(ns);    if(!nsObj){      // default to <ns>.widget by convention      dojo.ns.register(ns, ns + '.widget');      nsObj = dojo.ns.get(ns);    }        // allow the namespace to resolve the widget module    if(nsObj){nsObj.resolve(widgetName);}    // locate a widget implementation in the registered module for our current rendering environment    impl = findImplementation(lowerCaseWidgetName, nsObj.module);    if(impl){return(imps[lowerCaseWidgetName] = impl)};    // try to load a manifest to resolve this implemenation    nsObj = dojo.ns.require(ns);    if((nsObj)&&(nsObj.resolver)){      nsObj.resolve(widgetName);      impl = findImplementation(lowerCaseWidgetName, nsObj.module);      if(impl){return(imps[lowerCaseWidgetName] = impl)};    }      // this is an error condition under new rules    dojo.deprecated('dojo.widget.Manager.getImplementationName',       'Could not locate widget implementation for "' + widgetName + '" in "' + nsObj.module + '" registered to namespace "' + nsObj.name + '". '                          + "Developers must specify correct namespaces for all non-Dojo widgets", "0.5");    // backward compat: if the user has not specified any namespace and their widget is not in dojo.widget.*    // search registered widget packages [sic]    // note: registerWidgetPackage itself is now deprecated     for(var i=0; i<widgetPackages.length; i++){      impl = findImplementation(lowerCaseWidgetName, widgetPackages[i]);      if(impl){return(imps[lowerCaseWidgetName] = impl)};    }        throw new Error('Could not locate widget implementation for "' + widgetName + '" in "' + nsObj.module + '" registered to namespace "' + nsObj.name + '"');  }
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