meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
http://camanjs.com
BSD 3-Clause "New" or "Revised" License
3.55k stars 404 forks source link

Does not work on Safari Iphone #62

Closed jsamouh closed 11 years ago

jsamouh commented 11 years ago

When we call Caman Instance, we have undefined is not a function

stufisher commented 11 years ago

I have the same issue on ipad/iphone io5. How can i help debug this?

ruanfourie commented 11 years ago

I have the same issue on Ipad 3, 'undefined is not a function' - running IOS5.

GeoffLouw commented 11 years ago

I got the same problem, Safari 5 / 5.1 does not support the bind method used in the update. This worked for me to add bind functionality to browsers that does not support it: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind?redirectlocale=en-US&redirectslug=JavaScript%2FReference%2FGlobal_Objects%2FFunction%2Fbind

meltingice commented 11 years ago

Is upgrading from iOS 5 not an option? I was only planning on iOS 6 and greater support due to the fact that iOS 5 was 2 major revisions ago.

GeoffLouw commented 11 years ago

I have an old iPad 1 hides in shame, the max support version on that is iOS 5.1.1. I do agree that you should not have to support a version that far back. Just a work around for those that might like it.

meltingice commented 11 years ago

Good to know, I didn't realize the max support version for the iPad 1 is 5.1.1. Just a heads up though, CamanJS is likely going to be painfully slow with that device + Safari version.

Going to close this issue. If your browser doesn't support .bind(), you can drop in the polyfill above.

GeoffLouw commented 11 years ago

Noted :) Thanks again for the great work