bespokejs / bespoke

DIY Presentation Micro-Framework

Home Page:http://markdalgleish.com/projects/bespoke.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

step.bind() framework does not work on iOs5

synthview opened this issue · comments

Hello,
I've read the this topic #2 where you say the issue is in the site not in the framework.

I’m using your original bespoke.js file and trying to add buttons to make the desk’s cards slide but on iOs5 bespoke.next(); breaks the js at step.bind() (into bespoke.js).

If you could fix it fast it would be great :) there are still many devices using iOs5…
Thanks

iOS5 is missing Function#bind, so a simple fix is to include es5-shim.

Thanks, I'm not a js ninja, is there a way to make only older webkit to load it?

or maybe use a jquery command, as I use jquery on the same page?

Since you're already using jQuery, it wouldn't be a big deal to include the bind polyfill on its own for everyone.

well, I've tried to import es5-shim and after this, to add the the jquery bind polyfill code but none worked as now
I see a new error in console:
TypeError: Result of expression 'el.classList' [undefined] is not an object.

Ooops, sorry, it works on iOs5! It doesn't with Mac Safari 4, but who cares about that :)