Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. import Ember from 'ember';
  2.  
  3. export default Ember.Component.extend({
  4. isCoco: false,
  5.  
  6. index: 0,
  7.  
  8. /* mouseEnter() {
  9. this.set('isCoco', true);
  10. return false;
  11. },
  12.  
  13. mouseMove() {
  14. this.set('isCoco', true);
  15. },
  16.  
  17. mouseLeave() {
  18. this.set('isCoco', false);
  19. return false;
  20. },*/
  21.  
  22. didUpdateAttrs() {
  23. this._super(...arguments);
  24. console.debug('didUpdateAttrs', arguments[0]);
  25. },
  26.  
  27. didReceiveAttrs() {
  28. this._super(...arguments);
  29. console.debug('didReceiveAttrs', arguments[0]);
  30. },
  31.  
  32. willUpdate() {
  33. this._super(...arguments);
  34. console.debug('willUpdate', arguments[0]);
  35. },
  36.  
  37. willRender() {
  38. this._super(...arguments);
  39. console.debug('willRender', arguments[0]);
  40. },
  41.  
  42. actions: {
  43. changeAttr() {
  44. //this.incrementProperty('index');
  45. this.toggleProperty('isCoco');
  46. }
  47. }
  48. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement