From 3b669f2dc72652b2f2913ce3043417881ab1386d Mon Sep 17 00:00:00 2001 From: Peter Hartree Date: Wed, 23 Oct 2013 09:58:16 +0000 Subject: [PATCH] Minor edit for Zepto.js compatibility The extend function must be accessed by $.extend for Zepto.js compatibility. --- jquery.smooth-scroll.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.smooth-scroll.js b/jquery.smooth-scroll.js index 0ba2abc..ef41ebc 100644 --- a/jquery.smooth-scroll.js +++ b/jquery.smooth-scroll.js @@ -82,7 +82,7 @@ var version = '1.4.12', }, isTouch = 'ontouchend' in document; -$.fn.extend({ +$.extend($.fn, { scrollable: function(dir) { var scrl = getScrollable.call(this, {dir: dir}); return this.pushStack(scrl); @@ -236,4 +236,4 @@ function escapeSelector (str) { return str.replace(/(:|\.)/g,'\\$1'); } -})(jQuery); +})($);