title: Define attach-point programmatically
body: <p>I would like to define custom widget, create a Dijit/form/Button inside and add attach point to it. But for some reason the attach-point remains invisible..</p>
  
  <pre><code>postCreate: function() {
    require(["dijit/form/Button", "dojo/dom", "dojo/domReady!"], function(Button, dom){
      // Create a button programmatically:
      var myButton = new Button({
        label: "Click me!",
        "data-dojo-attach-point": "myButton"
      }, "progButtonNode").startup();
    });
  
    console.debug(this.myButton); // returns undefined
  }
  </code></pre>