Guest User

Untitled

a guest
Dec 18th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import Ember from 'ember';
  2.  
  3. export default Ember.Component.extend({
  4.  
  5. didInsertElement() {
  6. let currentType = this.get('currentType');
  7. let links = $('.nav-pills li');
  8.  
  9. for (let i=0; i<links.length; i++) {
  10. if (links[i].classList.contains('active')) {
  11. $(links[i]).removeClass('active');
  12. }
  13.  
  14. }
  15. },
  16.  
  17. actions: {
  18. selectType(type) {
  19. this.sendAction('changeType', type);
  20. }
  21. }
  22. });
Add Comment
Please, Sign In to add comment