title: How do I create a static class using DOJO in Javascript
body: <p>I am trying to create a Utility class in JavaScript and am using the Dojo framework. I can't find anywhere on here about how to properly create a static class within the Dojo framework. I don't want to have to create a new Utility object every time. I would prefer not to use a Singleton either. </p>
  
  <p>I currently have something like this...</p>
  
  <pre><code>//Util.js
  
  define(["dojo/_base/declare",
      "dojo/domReady!"], function (declare) {
          return declare(null, {
              //Pass in string format of element's ID
              clearTextBox: function (elemID) {
                  document.getElementById(elemID).value = "";
              }
          });
      });
  </code></pre>
  
  <p>NOTE: I am using AMD not Legacy code</p>