resize-window.html revision 9cdb1aa8d3a7901f789c2ad7a6ea00e804a9abeb
<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>
YUI({
debug: true
}).use('node', 'event', function(Y) {
var fn = function(e) {
Y.log('window resize');
};
// var handle = Y.on('windowresize', fn);
// Y.detach('windowresize', fn);
// handle.detach('windowresize', fn);
var handle = Y.on('category|windowresize', fn);
// Y.detach('category|windowresize', fn);
});
</script>
</body>
</html>