Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. enyo.kind({
  2. name: "Main.RemoteControlTouchpad",
  3. kind: "VFlexBox",
  4. components:[
  5. ],
  6.  
  7. create: function(){
  8. this.inherited(arguments);
  9. this.arr = new Array();
  10.  
  11.  
  12. for (var i = 0; i < 10; i++) {
  13. this.arr[i] = this.createComponent({
  14. kind: "test"
  15. });
  16. }
  17.  
  18. this.show();
  19. },
  20.  
  21. show:function() {
  22. this.arr[2].show();
  23. }
  24. });
  25.  
  26. enyo.kind({
  27. name:"test",
  28. kind:"Button",
  29. show:function() {
  30. console.error("Show");
  31. }
  32. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement