Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import Ember from 'ember';
  2.  
  3. export default Ember.Controller.extend({
  4. initialSelection: 'foobar',
  5.  
  6. actions: {
  7. suggestSource: function(query, syncResults, asyncResults) {
  8. Ember.run.later(this, () => {
  9. this.set('searched', true);
  10. });
  11. if(query == 'test')
  12. syncResults(["testing is fun!"]);
  13. else
  14. syncResults(["test"]);
  15. },
  16. }
  17. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement