, then its child content cannot be scrolled with the arrow keys unless you set tabindex on the content, too
* https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex
*/
- _viewportElement.one(_strMouseTouchDownEvent, function() {
- _viewportElement.removeAttr('tabindex');
+ _viewportElement.one(_strMouseTouchDownEvent, function() {
+ _viewportElement.removeAttr('tabindex');
});
}
}
-
+
//build resize observer for the host element
addResizeObserver(_sizeObserverElement, hostOnResized);
@@ -4973,11 +5124,11 @@
//the plugin is initialized now!
_initialized = true;
dispatchCallback("onInitialized");
-
+
//call all callbacks which would fire before the initialized was complete
FRAMEWORK.each(_callbacksInitQeueue, function(index, value) { dispatchCallback(value.n, value.a); });
_callbacksInitQeueue = [ ];
-
+
//add extensions
if(type(extensions) == TYPES.s)
extensions = [ extensions ];
@@ -4991,7 +5142,7 @@
if (_supportTransition && !_destroyed)
addClass(_hostElement, _classNameHostTransition);
}, 333);
-
+
return _initialized;
}
@@ -5010,18 +5161,18 @@
* @returns {*}
*/
window[PLUGINNAME] = function(pluginTargetElements, options, extensions) {
- if(arguments.length === 0)
+ if(arguments[LEXICON.l] === 0)
return this;
-
+
var arr = [ ];
var optsIsPlainObj = FRAMEWORK.isPlainObject(options);
var inst;
var result;
-
+
//pluginTargetElements is null or undefined
if(!pluginTargetElements)
return optsIsPlainObj || !options ? result : arr;
-
+
/*
pluginTargetElements will be converted to:
1. A jQueryElement Array
@@ -5029,10 +5180,10 @@
3. A Array with a single HTML Element
so pluginTargetElements is always a array.
*/
- pluginTargetElements = pluginTargetElements.length != undefined ? pluginTargetElements : [ pluginTargetElements[0] || pluginTargetElements ];
+ pluginTargetElements = pluginTargetElements[LEXICON.l] != undefined ? pluginTargetElements : [ pluginTargetElements[0] || pluginTargetElements ];
initOverlayScrollbarsStatics();
- if(pluginTargetElements.length > 0) {
+ if(pluginTargetElements[LEXICON.l] > 0) {
if(optsIsPlainObj) {
FRAMEWORK.each(pluginTargetElements, function (i, v) {
inst = v;
@@ -5049,7 +5200,7 @@
arr.push(inst);
});
}
- result = arr.length === 1 ? arr[0] : arr;
+ result = arr[LEXICON.l] === 1 ? arr[0] : arr;
}
return result;
};
@@ -5076,7 +5227,7 @@
return FRAMEWORK.extend(true, { }, currDefaultOptions);
//set the new default options
- _pluginsGlobals.defaultOptions = FRAMEWORK.extend(true, { }, currDefaultOptions , _pluginsOptions.v(newDefaultOptions, _pluginsOptions.t, true));
+ _pluginsGlobals.defaultOptions = FRAMEWORK.extend(true, { }, currDefaultOptions , _pluginsOptions._validate(newDefaultOptions, _pluginsOptions._template, true));
};
/**
diff --git a/js/jquery.overlayScrollbars.min.js b/js/jquery.overlayScrollbars.min.js
index 24ab1af..5dc4f77 100644
--- a/js/jquery.overlayScrollbars.min.js
+++ b/js/jquery.overlayScrollbars.min.js
@@ -2,12 +2,12 @@
* OverlayScrollbars
* https://github.com/KingSora/OverlayScrollbars
*
- * Version: 1.6.3
+ * Version: 1.7.0
*
* Copyright KingSora.
* https://github.com/KingSora
*
* Released under the MIT license.
- * Date: 31.01.2019
+ * Date: 18.04.2019
*/
-!function(t,r){"function"==typeof define&&define.amd?define(["jquery"],function(n){return r(t,t.document,undefined,n)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=r(t,t.document,undefined,require("jquery")):r(t,t.document,undefined,t.jQuery)}("undefined"!=typeof window?window:this,function(lt,st,Ti,n){"use strict";var i,o,vt="OverlayScrollbars",dt="object",ht="function",bt="array",pt="string",mt="boolean",wt="number",d="null",yt="class",ki="style",gt="id",xt="length",St="prototype",Oi="offsetHeight",Ai="clientHeight",Li="scrollHeight",Ci="offsetWidth",Ni="clientWidth",Di="scrollWidth",Hi={wW:function(){return lt.innerWidth||st.documentElement[Ni]||st.body[Ni]},wH:function(){return lt.innerHeight||st.documentElement[Ai]||st.body[Ai]},mO:function(){return lt.MutationObserver||lt.WebKitMutationObserver||lt.WebkitMutationObserver||lt.MozMutationObserver||Ti},rO:function(){return lt.ResizeObserver||lt.WebKitResizeObserver||lt.WebkitResizeObserver||lt.MozResizeObserver||Ti},rAF:function(){return lt.requestAnimationFrame||lt.webkitRequestAnimationFrame||lt.mozRequestAnimationFrame||lt.oRequestAnimationFrame||lt.msRequestAnimationFrame||function(n){return lt.setTimeout(n,1e3/60)}},cAF:function(){return lt.cancelAnimationFrame||lt.webkitCancelAnimationFrame||lt.mozCancelAnimationFrame||lt.oCancelAnimationFrame||lt.msCancelAnimationFrame||function(n){return lt.clearTimeout(n)}},now:function(){return Date.now&&Date.now()||(new Date).getTime()},stpP:function(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0},prvD:function(n){n.preventDefault&&n.cancelable?n.preventDefault():n.returnValue=!1},page:function(n){var t="page",r="client",e="X",i=((n=n.originalEvent||n).target||n.srcElement||st).ownerDocument||st,o=i.documentElement,a=i.body;if(n.touches===Ti)return!n[t+e]&&n[r+e]&&null!=n[r+e]?{x:n[r+e]+(o&&o.scrollLeft||a&&a.scrollLeft||0)-(o&&o.clientLeft||a&&a.clientLeft||0),y:n[r+"Y"]+(o&&o.scrollTop||a&&a.scrollTop||0)-(o&&o.clientTop||a&&a.clientTop||0)}:{x:n[t+e],y:n.pageY};var u=n.touches[0];return{x:u[t+e],y:u.pageY}},mBtn:function(n){var t=n.button;return n.which||t===Ti?n.which:1&t?1:2&t?3:4&t?2:0},inA:function(n,t){for(var r=0;r
'),a=T[0],e=Ii(T.children("div").eq(0));z.append(T),T.hide().show();var t,r,u,f,c,l,s,v,d,h=k(a),b={x:0===h.x,y:0===h.y};function p(n){var t=!1,r="Webkit Moz ms O".split(" "),e=st.createElement("div"),i=null,o=0;if(n=n.toLowerCase(),e[ki][n]!==Ti&&(t=!0),!t)for(i=n.charAt(0).toUpperCase()+n.substr(1);o