From 3d54666dd45e2804fde91ec027a6cb98500eceeb Mon Sep 17 00:00:00 2001 From: extempl Date: Fri, 13 Feb 2015 06:25:50 +0200 Subject: [PATCH] Provided user to decide if he wants to use 'mobile' class or not. --- src/jquery.fs.boxer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jquery.fs.boxer.js b/src/jquery.fs.boxer.js index 1e8a2d3..f250774 100644 --- a/src/jquery.fs.boxer.js +++ b/src/jquery.fs.boxer.js @@ -44,7 +44,7 @@ margin: 50, minHeight: 100, minWidth: 100, - mobile: false, + mobile: null, opacity: 0.75, retina: false, requestKey: "boxer", @@ -192,7 +192,7 @@ gallery: { active: false }, - isMobile: (trueMobile || e.data.mobile), + isMobile: typeof(e.data.mobile) == 'boolean' ? e.data.mobile : trueMobile, isAnimating: true, oldContentHeight: 0, oldContentWidth: 0 @@ -1220,4 +1220,4 @@ } } }; -})(jQuery, window); \ No newline at end of file +})(jQuery, window);