bespokejs / bespoke

DIY Presentation Micro-Framework
http://markdalgleish.com/projects/bespoke.js/
MIT License
4.69k stars 442 forks source link

Activate not firing #52

Closed bendparker closed 9 years ago

bendparker commented 9 years ago

Having trouble with the an event not firing...

var deck; deck = bespoke.from('#presentation'); deck.on('activate', function(event) { alert('fire'); });

this never seems to be fire, however presentation loads correctly.

bendparker commented 9 years ago

changed to this code:

var deck; deck = bespoke.from('#presentation', [function (deck2) { deck2.on('activate', function(event) { alert('fire'); });
}]);

It fires on load now, however fails with the following errors:

Uncaught TypeError: Cannot set property 'hash' of undefined Uncaught TypeError: Cannot read property 'from' of undefined

bendparker commented 9 years ago

Me being a dummy, i was using an old version...read readme from that version and got it figured out.

markdalgleish commented 9 years ago

:)