I am using both jQuery and Zepto. I want to conditionally invoke Zepto methods on a jQuery collection. Anyone have an eloquent solution? My code currently looks something like this:
// Obtain jQuery Object
var $selector = jQuery('.selector');
// Desktop
$selector.click( ... );
// Mobile
if (window.Zepto){
$selector.slideLeft( ... );
}