Demo with AlloyUI Tern plugin
See
https://github.com/angelozerr/tern-aui2.0.x
for more infos.
Y //<-Ctrl+Space shows YUI AUI().use('node', function (Y) { var helloWorld = function(e) { //<-Ctrl+Space shows e e. //<-Ctrl+Space shows target, ... e.target. //<-Ctrl+Space shows setHTML e.target.setHTML("
Hello World!
"); Y.one('#container').addClass('hello'); } var node = Y.one("#container"); node.on("click", helloWorld); var interceptLink = function(e) { e.preventDefault(); Y.one('.message').setStyle('visibility', 'visible'); } Y.one('#secondA').on("click", interceptLink); });