$30 off During Our Annual Pro Sale. View Details »

dat YUI hack!

dat YUI hack!

Intro to live YUI code presentation

Avatar for Simon Højberg

Simon Højberg

October 19, 2012
Tweet

More Decks by Simon Højberg

Other Decks in Programming

Transcript

  1. YUI modules // define the bar module // bar.js YUI.add('bar',

    function (Y) { Y.bar = function () { return Y.foo(‘baz’); }; }, '0.0.1', { requires: [‘foo’] }); Thursday, October 18, 12
  2. YUI modules <!-- index.html --> <script> // use modules. often

    only one // `use` statement per app YUI.use(‘bar’, function (Y) { Y.bar(); }); </script> Thursday, October 18, 12
  3. introducing Cweepy! At night the cweeps come out Run! its

    a ZOMBIE! + Cweepy Thursday, October 18, 12