Index: openacs-4/packages/ajaxhelper/www/resources/dojo-ajax/src/AdapterRegistry.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ajaxhelper/www/resources/dojo-ajax/src/Attic/AdapterRegistry.js,v diff -u -N -r1.1 -r1.2 --- openacs-4/packages/ajaxhelper/www/resources/dojo-ajax/src/AdapterRegistry.js 6 Nov 2006 14:37:20 -0000 1.1 +++ openacs-4/packages/ajaxhelper/www/resources/dojo-ajax/src/AdapterRegistry.js 25 Dec 2006 16:39:51 -0000 1.2 @@ -11,7 +11,7 @@ dojo.provide("dojo.AdapterRegistry"); dojo.require("dojo.lang.func"); -dojo.AdapterRegistry = function(/*boolean, optional*/returnWrappers){ +dojo.AdapterRegistry = function(/*Boolean?*/ returnWrappers){ // summary: // A registry to make contextual calling/searching easier. // description: @@ -24,25 +24,24 @@ } dojo.lang.extend(dojo.AdapterRegistry, { - register: function( /*string*/ name, /*function*/ check, /*function*/ wrap, - /*boolean, optional*/ directReturn, - /*boolean, optional*/ override){ + register: function(name, check, /*Function*/ wrap, directReturn, override){ // summary: // register a check function to determine if the wrap function or // object gets selected - // name: a way to identify this matcher. - // check: + // name: String + // a way to identify this matcher. + // check: Function // a function that arguments are passed to from the adapter's // match() function. The check function should return true if the // given arguments are appropriate for the wrap function. - // directReturn: + // directReturn: Boolean? // If directReturn is true, the value passed in for wrap will be // returned instead of being called. Alternately, the // AdapterRegistry can be set globally to "return not call" using // the returnWrappers property. Either way, this behavior allows // the registry to act as a "search" function instead of a // function interception library. - // override: + // override: Boolean? // If override is given and true, the check function will be given // highest priority. Otherwise, it will be the lowest priority // adapter. @@ -52,7 +51,7 @@ }, match: function(/* ... */){ - // summary: + // summary: // Find an adapter for the given arguments. If no suitable adapter // is found, throws an exception. match() accepts any number of // arguments, all of which are passed to all matching functions