title: How to define public constants in a custom AMD dojo widget
body: <p>Up to dojo 1.6 I used to define public constants like this:</p>
  
  <pre><code>dojo.declare('x.y.Z', null, { ... });
  
  x.y.Z.constant = 100;
  </code></pre>
  
  <p>This way they can be accessed from other code without instancing the class.</p>
  
  <p>Since dojo 1.7 it is possible that my widget will be renamed or moved. So I should not use the absolute module ID inside my code.</p>
  
  <p>What would be a good way to define such a constant?</p>