delegate-getlisteners.html revision 9cdb1aa8d3a7901f789c2ad7a6ea00e804a9abeb
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Example</title>
</head>
<body>
<p>This is a test. <strong>This is a test</strong>. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. </p>
<ul>
<li>Test</li>
<li>Test</li>
<li>Test</li>
<li>Test</li>
<li>Test</li>
</ul>
<script src="http://yui.yahooapis.com/3.0.0/build/yui/yui-min.js"></script>
<script>
YUI({
debug: true
}).use('node', function(Y) {
Y.on('mouseover', function(e) {
//console.log(e.target);
}, '*');
Y.on('click', function(e) {
console.log(e.target);
console.log(Y.Event.getListeners(e.target));
}, '*');
});
</script>
</body>
</html>