/*
        jQuery.hitch() -  Advanced scope manipulation for jQuery
        version: 0.1, Peter Higgins (dante at dojotoolkit.org)

        (c) 2004-2009 The Dojo Foundation - adapted from `dojo.hitch`
        Either AFL/New BSD license, see: http://dojotoolkit.org/license
*/
(function($){
$.hitch=function(_2,_3){
if(!_3){
_3=_2;
_2=null;
}
if(typeof _3=="string"){
_2=_2||window;
if(!_2[_3]){
throw (["method not found"]);
}
return function(){
return _2[_3].apply(_2,arguments||[]);
};
}
return !_2?_3:function(){
return _3.apply(_2,arguments||[]);
};
};
})(jQuery);

