title: dojo.connect VS <script type="dojo/connect"> (DojoML)
body: <p><br>
  First of all I want to say Im new in the DOJO world and probably for some persons this
  question is stupid :). But also somebody says that there is no stupid questions.<br>
  Here is my problem:<br>
  I got a quick question related to DojoML (<code>&lt;script type="dojo/connect"&gt;</code> to be more exact).
  In an example here: <a href="http://dojotoolkit.org/reference-guide/dijit/Tree.html" rel="nofollow">http://dojotoolkit.org/reference-guide/dijit/Tree.html</a>
  we got somethin like this :<br>
  <code>
  <code>&lt;script type="dojo/connect"&gt;</code><br>
  var menu = dijit.byId("tree_menu");<br>
  menu.bindDomNode(this.domNode);<br>
  dojo.connect(menu, "_openMyself", this, function(e) {<br>
      var tn = dijit.getEnclosingWidget(e.target);
      menu.getChildren().forEach(function(i) {<br>
          i.attr('disabled', !tn.item.children);<br>
  });</p>
  
  <p>});<br>
  <code>&lt;/script&gt;</code>
  </code></p>
  
  <p>Now I would like to translate it to "traditional" script.
  As I read here : <a href="http://dojocampus.org/content/2008/08/09/dojoml-the-best-thing-since-sliced-bread/" rel="nofollow">http://dojocampus.org/content/2008/08/09/dojoml-the-best-thing-since-sliced-bread/</a><br>
  such DojoML notation can be translated into :   </p>
  
  <p><code>
  dojo.connect(oMyTree, 'postCreate', null, function(){});<br>
  </code></p>
  
  <p>My question is if this is the right "translation" because it simply doesnt work.
  My goal is to attach a simple right click menu to every MyTree's node.</p>