I am new to zepto and use it as a jQuery replacement for the mobile part of the website.
So zepto does not have $ .fn.extend. Great, which is cool with me, but I need my pluggin to work regardless of jquery or zepto.
What is zecto alterative for fn.extend? How could you make a cross-library extension? I have not yet found any documentation on this.
$.fn.extend({ lineRedNAddClass : function(option){ $(this).css('border','red 1px solid').addClass(option); } });
Can this be done to work as with the same script?
source share