delegate-getlisteners.html revision ae0acbc28a5e36314d44af9ffa26ca678e545756
<!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="/build/yui/yui-debug.js"></script>
<script>
YUI({
debug: true,
filter: 'debug'
}).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>