title: Cocos2d-JS 3.0 migration
body: <p>I'm moving from cocos2d-html5 version 2.2 to cocos2d-js 3.0 and I have a problem with this code (which works perfectly in version 2.2): </p>
  
  <pre><code>        menuButtons = cc.Menu.create();
          for (var a = 1; a &lt; 6; a++){
  
              var label = cc.LabelTTF.create("BUTTON " + a, "Arial", 20);
              var tmpBtn = cc.MenuItemLabel.create(label, function (e) {
                  cc.log("TEST TAG: " + e.tag);
                  //StartSomethingOther(e);
              }, this);
  
              tmpBtn.setPosition(50, a * 30);
              tmpBtn.tag = a;
  
              menuButtons.addChild(tmpBtn,2,1);
  
          }
          menuButtons.setPosition(10, 10);
          this.addChild(menuButtons, 1);
  </code></pre>
  
  <p>Any "button" is pressed the console always output "TEST TAG: 1" instead of putting the correct number.
  Any tip to solve the problem?</p>