olivernn / davis.js

RESTful degradable JavaScript routing using pushState
http://davisjs.com
532 stars 58 forks source link

davis.noiOS.js incorrect logic means no html5 for iOS #51

Closed iainxt closed 12 years ago

iainxt commented 12 years ago

The logic uses an && when it should be an ||. As such it turns it off for all iOS

return uber() && (!match && majorVersionNumber > 4)

should be

return uber() && (!match || majorVersionNumber > 4)

olivernn commented 12 years ago

Thanks for pointing this out - fixed in the latest version of davis (0.9.3)