title: How to use dojo debounce and throttle?
body: <p>I need an example of using <code>debounce</code> and <code>throttle</code> in Dojo version 1.10.4.</p>
  
  <p>Unfortunately, I cannot find any examples in their documentation.</p>
  
  <ul>
  <li><a href="http://dojotoolkit.org/api/?qs=1.10/dojo/throttle" rel="nofollow">http://dojotoolkit.org/api/?qs=1.10/dojo/throttle</a></li>
  <li><a href="http://dojotoolkit.org/api/?qs=1.10/dojo/debounce" rel="nofollow">http://dojotoolkit.org/api/?qs=1.10/dojo/debounce</a></li>
  </ul>
  
  <p>At the moment I am trying to debounce the following event with no success</p>
  
  <p>... Using require <code>'dojo/on'</code>.</p>
  
  <pre><code>on.debounce(window, 'resize', 2000, function (event) {
      topic.publish('event/resize', event)
  }.bind(this));
  </code></pre>