node-xy.mustache revision fb1ecdf65fd4106deb62da339763f2e7670ca0f6
<p>In this example, we will listen for clicks on the document and update the position of our demo node to match the click position.</p>
<p>The last step is to assign the click handler to the <code>document</code> to capture all <code>click</code> events.</p>
Y.one('document').on('click', onClick);