title: How to properly return an empty function?
body: <p>I'm using a run-time assignment of functions to account for browser differences.  However for un-supported browsers, I want to return an empty function so that a JavaScript error is not thrown.</p>
  
  <p>But, jslint complains about empty functions.  What is the jslint happy way to do this?</p>
  
  <blockquote>
    <p>Empty block.</p>
  </blockquote>
  
  <pre><code>$R.functionNull = function () {
      // events not supported;
  };
  
  $R.Constructor.prototype.createEvent = (function () {
      if (doc.createEvent) {
          return function (type) {
              var event = doc.createEvent("HTMLEvents");
              event.initEvent(type, true, false);
              $NS.eachKey(this, function (val) {
                  val.dispatchEvent(event);
              });
          };
      }
      if (doc.createEventObject) {
          return function (type) {
              var event = doc.createEventObject();
              event.eventType = type;
              $NS.eachKey(this, function (val) {
                  val.fireEvent('on' + type, event);
              });
          };
      }
      return $R.functionNull;
  }());
  </code></pre>