index.html revision 952ddc23366b3f5c426f0ca05297144c6166a418
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>YUI: Throttle</title>
</head>
<body>
<script type="text/javascript" src="/build/yui/yui-debug.js"></script>
<script type="text/javascript" src="/build/yui/yui-throttle.js"></script>
<script type="text/javascript">
var yConfig = {
base: '/build/',
filter: 'DEBUG',
allowRollup: false,
logExclude: {
'YUI': true,
Event: true,
Base: true,
Attribute: true,
augment: true
},
throwFail: true,
debug: false
};
YUI(yConfig).use('yui-throttle', 'node', 'event', function(Y) {
console.log(Y);
Y.one(document).on('mousemove', Y.throttle(function(e) {
console.log('mousemove: ', e, ' :: ', (new Date()).getTime());
}));
Y.one(document).on('mousemove', function(e) {
//console.log('mousemove: ', e, ' :: ', (new Date()).getTime());
});
});
</script>
</body>
</html>