Conversation
|
What's this fix about? |
|
I didn't write it. I just copied it from tdreyno/iphone-style-checkboxes. jQuery.browser has been deprecated for a long time and its been removed as of 1.9. So, the author of that JS library applied this fix. The commit for the coffeescript is here: tdreyno/iphone-style-checkboxes@3c61765 |
|
I see, I see... From the jQuery upgrade guide:
I don't know, but that commit is BAD IMO. The ios-checkboxes should either depend on the jQuery Migrate or deal with it some other way. "Fixing deprecation" by undeprecating against the library is a bad way of dealing with it, especially when the library actually provides a migration path for that. Maybe @tdreyno can suggest? Not sure I want to merge it in. |
|
I don't think jQuery 2.0 will have a migrate plugin, right? Basically, the original plugin needs to work around some IE spacing issues which are not feature detectable. It's only in known versions of IE so we use simple user agent detection. The code could probably do this internally without re-estabilishing the |
jQuery 1.9 removed $.browser. I just copied the coffee file from the main repo and it fixes the gem for apps using 1.9.