| 1 | define(["dojo/_base/declare", "dojox/app/ViewBase", "dijit/_WidgetBase", "dijit/_TemplatedMixin", "dijit/_WidgetsInTemplateMixin"], |
| 2 | function(declare, ViewBase, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin){ |
| 3 | return declare([_WidgetBase, ViewBase, _TemplatedMixin, _WidgetsInTemplateMixin], { |
| 4 | postCreate: function(){ |
| 5 | this.inherited(arguments); |
| 6 | // use the dojo attach point |
| 7 | this.myButton.on("click", function(){ |
| 8 | console.log("I was correctly attached!") |
| 9 | }); |
| 10 | } |
| 11 | }); |
| 12 | } |
| 13 | ); |