Obscure JavaScript syntax
<p>...obscure to me, anyway. Can anyone tell me what this means? I have various bits of code that look like this:</p>

<pre><code>node[foo](bar, function() { 
   ...do something to 'node'
});
</code></pre>

<p>'node' is a single DOM node. 'foo' and 'bar' are both strings, though the code sets 'bar' to a boolean occasionally. The 'do something' code is occasionally executed, but only (I think) if 'bar' is <code>true</code>. Thanks.</p>
