This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Usable with Route, Controller, and Component (anything using `ActionHandler`) | |
export default Mixin.create({ | |
// Could add to `mergedProperties` | |
actionsList: [], | |
// If an action isn't found on the `actions` hash then ActionHandler will check for a target with a send method | |
// The `computed` allows the correct `this` scope to be used when calling methods | |
target: computed(function() { | |
let send = (...args) => { | |
let methodName = args.shift(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import {task, timeout} from 'ember-concurrency'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
arg: 1, | |
batchedArgs: Ember.A([]), | |
results: Ember.A([]), |