Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Ember from 'ember';
- export default Ember.Controller.extend({
- emberVersion: '3.3',
- count: 0,
- init() {
- Ember.run.debounce(this, this.someFunction, 0);
- Ember.run.throttle(this, this.someFunction, 0);
- },
- someFunction() {
- this.incrementProperty('count');
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement