I am new to zepto, and am using it as a jQuery replacement for the mobile part of a website.
So zepto doesn't have $.fn.extend. Fine that's cool with me, but I need my pluggin to work regardless of jquery or zepto.
What is zepto's alterative to fn.extend? How would you go about making a cross library extension? I've yet to find any documentation on this.
$.fn.extend({
lineRedNAddClass : function(option){
$(this).css('border','red 1px solid').addClass(option);
}
});
can this be made to work with both from the same script?