words

Make jQuery plugins work with Zepto

Just replace the last line to match something like this:

(function($){
  $.fn.MyUselessPlugin = function (...) {
        [...]	
    return this;
  };  
})(this.jQuery || this.Zepto);

Please keep in mind that this hack will only work with plugins that use jQuery methods also implemented in Zepto.

Last updated: