title: how to get current Function object reference
body: <pre><code>itself.bind = function (object, method, callback, context, args, includeEventArgs) {
  
    var handler, originalArgLen;
  
    args = args.slice(0, arguments.length);
    originalArgLen = args.length;
    context = context || null;
  
    handler = function () {
       if (includeEventArgs) {
          for (var i = arguments.length - 1; i &gt;= 0; i--) {
             args.push(arguments[i]);
          }
       }
  
       callback.apply(context, args);
    };
  
    handler.userArgsLength = originalArgLength; 
  
    object[method] = handler;
  };
  </code></pre>
  
  <p>Suppose I call </p>
  
  <pre><code>TOOL.bind(canvas, "onmouseover",  doDrawFunc, [currentDrawingTool], true); 
  </code></pre>
  
  <p>I want to be able to access <code>userArgsLength</code> from from within the <code>doDrawFunc</code>. </p>