new-core.html revision 24af57b8ae16a109f012057cf02c11258b6d8b4d
301N/A<!DOCTYPE HTML>
301N/A<html>
301N/A <body>
301N/A <button id="my-button" class="yui3-button">my button</button>
301N/A
301N/A <script type="text/javascript" src="/build/yui/yui.js"></script>
301N/A <script type="text/javascript">
301N/A
301N/A YUI({
301N/A filter: 'raw'
301N/A }).use('button-core', function(Y) {
301N/A
301N/A var button = Y.one('#my-button').plug(Y.Plugin.Button);
301N/A
301N/A button.on('click', function(){
301N/A console.log('a');
301N/A });
301N/A
301N/A });
301N/A </script>
301N/A </body>
301N/A</html>