Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. import Ember from 'ember';
  2.  
  3. export default Ember.Controller.extend({
  4. emberVersion: '3.3',
  5. count: 0,
  6. init() {
  7. Ember.run.debounce(this, this.someFunction, 0);
  8. Ember.run.throttle(this, this.someFunction, 0);
  9. },
  10. someFunction() {
  11. this.incrementProperty('count');
  12. }
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement