emberjs/ember.js — pull request #2793 by bantic (2013-06-04 16:32:38+00:00)
Title: Add `debounce` to Ember.run. Uses `backburner.debounce`

This puts `debounce` onto `Ember.run`, so you don't have to contort through `Ember.run.backburner.debounce`.

Usage:
```javascript
var myFunc = function() { console.log(this.name + ' ran.'); };
var myContext = {name: 'debounce'};

Ember.run.debounce(myContext, myFunc, 150);
// less than 150ms passes
Ember.run.debounce(myContext, myFunc, 150);

// 150ms passes
// myFunc is invoked with context myContext
// console logs 'debounce ran.' one time.
```

Added documentation along with the method in `run_loop.js` and tests in `tests/run_loop/debounce_test.js`

cc @mixonic