title: Why won't my dojo.byId work within a script library?
body: <p>I have a web page with dojo code on it, including a function passed to dojo.addOnLoad with the following code:</p>
  
  <pre><code>laborDetailHandler.RevenueTotalInput = dojo.byId('#{id:LaborRevenueTotal}');
  if (!laborDetailHandler.RevenueTotalInput) {
   console.warn('RevenueTotalInput not found.')
  }
  </code></pre>
  
  <p>If this code is in-line, even if it's above the LaborRevenueTotal inputbox, it works.</p>
  
  <p>If this code is moved out to a script library, I get the 'RevenueTotalInput not found.' message, which tells me that dojo.addOnLoad receives the function and executes it, but for some reason the function isn't working.</p>
  
  <p>I'm completely stumped here.  Anyone have any ideas?</p>