jquery-asScrollable.min.js.map 36 KB

1
  1. {"version":3,"sources":["jquery-asScrollable.es.js"],"names":["global","factory","define","amd","exports","require","mod","jQuery","jqueryAsScrollableEs","this","_jquery","_classCallCheck","instance","Constructor","TypeError","getTime","window","performance","now","Date","isPercentage","n","indexOf","conventToPercentage","parseFloat","toFixed","convertPercentageToFloat","slice","_jquery2","obj","__esModule","default","_interopRequireDefault","_typeof","Symbol","iterator","constructor","prototype","_createClass","defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","protoProps","staticProps","DEFAULTS","namespace","skin","contentSelector","containerSelector","enabledClass","disabledClass","draggingClass","hoveringClass","scrollingClass","direction","showOnHover","showOnBarHover","duration","easing","responsive","throttle","scrollbar","isFFLionScrollbar","isOSXFF","ua","version","navigator","userAgent","test","exec","replace","instanceId","AsScrollable","element","options","$element","extend","data","classes","wrap","content","container","bar","barHide","attributes","vertical","axis","overflow","scroll","scrollLength","pageOffset","ffPadding","clientLength","offset","crossLength","crossClientLength","crossOffset","horizontal","_states","$bar","_frameId","_timeoutId","asScrollbar","getEasing","init","value","position","css","$container","find","$wrap","parent","height","$content","overflowX","overflowY","addClass","initLayout","createBar","bindEvents","trigger","_this","on","eventNameWithId","update","that","eventName","enter","removeClass","is","leave","showBar","hideBar","NAMESPACE$1","proxy","oldLeft","offsetLeft","getOffset","getPercentOffset","getScrollLength","oldTop","offsetTop","e","api","getBarApi","moveTo","clearTimeout","setTimeout","scrollTo","off","parentLength","parentNode","scrollbarWidth","getBrowserScrollbarWidth","useCssTransitions","keyboard","appendTo","add","updateBarHandle","eventType","_len","arguments","params","Array","_key","concat","onFunction","word","substring","toUpperCase","apply","state","undefined","events","split","join","func","wait","_this2","_now","timeout","context","args","result","previous","later","_len2","_key2","remaining","outer","outerStyle","document","createElement","style","width","top","body","appendChild","removeChild","getContainerLength","sync","type","move","callback","startTime","start","end","requestAnimationFrame","run","time","percent","fn","current","cancelAnimationFrame","scrollBy","getBar","containerLength","enable","setHand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,GAAA,cACAjI,KAAA+H,MAAA,YACA/H,KAAA8G,MACAM,SAAApH,KAAA0E,QAAAxB,eACA8E,YAAAhI,KAAA0E,QAAAzB,cAEAjD,KAAA6N,eACA7N,KAAA8N,WAGA9N,KAAAwH,QAAA,cAIA/E,IAAA,uxCA70BA,8IAIA","file":"jquery-asScrollable.min.js","sourcesContent":["/**\n* jQuery asScrollable v0.4.10\n* https://github.com/amazingSurge/jquery-asScrollable\n*\n* Copyright (c) amazingSurge\n* Released under the LGPL-3.0 license\n*/\nimport $ from 'jquery';\n\nvar DEFAULTS = {\n namespace: 'asScrollable',\n\n skin: null,\n\n contentSelector: null,\n containerSelector: null,\n\n enabledClass: 'is-enabled',\n disabledClass: 'is-disabled',\n\n draggingClass: 'is-dragging',\n hoveringClass: 'is-hovering',\n scrollingClass: 'is-scrolling',\n\n direction: 'vertical', // vertical, horizontal, both, auto\n\n showOnHover: true,\n showOnBarHover: false,\n\n duration: 500,\n easing: 'ease-in', // linear, ease, ease-in, ease-out, ease-in-out\n\n responsive: true,\n throttle: 20,\n\n scrollbar: {}\n};\n\nfunction getTime() {\n if (typeof window.performance !== 'undefined' && window.performance.now) {\n return window.performance.now();\n }\n return Date.now();\n}\n\nfunction isPercentage(n) {\n return typeof n === 'string' && n.indexOf('%') !== -1;\n}\n\nfunction conventToPercentage(n) {\n if (n < 0) {\n n = 0;\n } else if (n > 1) {\n n = 1;\n }\n return `${parseFloat(n).toFixed(4) * 100}%`;\n}\n\nfunction convertPercentageToFloat(n) {\n return parseFloat(n.slice(0, -1) / 100, 10);\n}\n\nlet isFFLionScrollbar = (() => {\n 'use strict';\n\n let isOSXFF, ua, version;\n ua = window.navigator.userAgent;\n isOSXFF = /(?=.+Mac OS X)(?=.+Firefox)/.test(ua);\n if (!isOSXFF) {\n return false;\n }\n version = /Firefox\\/\\d{2}\\./.exec(ua);\n if (version) {\n version = version[0].replace(/\\D+/g, '');\n }\n return isOSXFF && +version > 23;\n})();\n\nconst NAMESPACE$1 = 'asScrollable';\n\nlet instanceId = 0;\n\nclass AsScrollable {\n constructor(element, options) {\n this.$element = $(element);\n options = this.options = $.extend({}, DEFAULTS, options || {}, this.$element.data('options') || {});\n\n this.classes = {\n wrap: options.namespace,\n content: `${options.namespace}-content`,\n container: `${options.namespace}-container`,\n bar: `${options.namespace}-bar`,\n barHide: `${options.namespace}-bar-hide`,\n skin: options.skin\n };\n\n this.attributes = {\n vertical: {\n axis: 'Y',\n overflow: 'overflow-y',\n\n scroll: 'scrollTop',\n scrollLength: 'scrollHeight',\n pageOffset: 'pageYOffset',\n\n ffPadding: 'padding-right',\n\n length: 'height',\n clientLength: 'clientHeight',\n offset: 'offsetHeight',\n\n crossLength: 'width',\n crossClientLength: 'clientWidth',\n crossOffset: 'offsetWidth'\n },\n horizontal: {\n axis: 'X',\n overflow: 'overflow-x',\n\n scroll: 'scrollLeft',\n scrollLength: 'scrollWidth',\n pageOffset: 'pageXOffset',\n\n ffPadding: 'padding-bottom',\n\n length: 'width',\n clientLength: 'clientWidth',\n offset: 'offsetWidth',\n\n crossLength: 'height',\n crossClientLength: 'clientHeight',\n crossOffset: 'offsetHeight'\n }\n };\n\n // Current state information.\n this._states = {};\n\n // Supported direction\n this.horizontal = null;\n this.vertical = null;\n\n this.$bar = null;\n\n // Current timeout\n this._frameId = null;\n this._timeoutId = null;\n\n this.instanceId = (++instanceId);\n\n this.easing = $.asScrollbar.getEasing(this.options.easing) || $.asScrollbar.getEasing('ease');\n\n this.init();\n }\n\n init() {\n let position = this.$element.css('position');\n\n if (this.options.containerSelector) {\n this.$container = this.$element.find(this.options.containerSelector);\n this.$wrap = this.$element;\n\n if (position === 'static') {\n this.$wrap.css('position', 'relative');\n }\n } else {\n this.$container = this.$element.wrap('<div>');\n this.$wrap = this.$container.parent();\n this.$wrap.height(this.$element.height());\n\n if (position !== 'static') {\n this.$wrap.css('position', position);\n } else {\n this.$wrap.css('position', 'relative');\n }\n }\n\n if (this.options.contentSelector) {\n this.$content = this.$container.find(this.options.contentSelector);\n } else {\n this.$content = this.$container.wrap('<div>');\n this.$container = this.$content.parent();\n }\n\n switch (this.options.direction) {\n case 'vertical': {\n this.vertical = true;\n break;\n }\n case 'horizontal': {\n this.horizontal = true;\n break;\n }\n case 'both': {\n this.horizontal = true;\n this.vertical = true;\n break;\n }\n case 'auto': {\n let overflowX = this.$element.css('overflow-x'),\n overflowY = this.$element.css('overflow-y');\n\n if (overflowX === 'scroll' || overflowX === 'auto') {\n this.horizontal = true;\n }\n if (overflowY === 'scroll' || overflowY === 'auto') {\n this.vertical = true;\n }\n break;\n }\n default: {\n break;\n }\n }\n\n if (!this.vertical && !this.horizontal) {\n return;\n }\n\n this.$wrap.addClass(this.classes.wrap);\n this.$container.addClass(this.classes.container);\n this.$content.addClass(this.classes.content);\n\n if (this.options.skin) {\n this.$wrap.addClass(this.classes.skin);\n }\n\n this.$wrap.addClass(this.options.enabledClass);\n\n if (this.vertical) {\n this.$wrap.addClass(`${this.classes.wrap}-vertical`);\n this.initLayout('vertical');\n this.createBar('vertical');\n }\n\n if (this.horizontal) {\n this.$wrap.addClass(`${this.classes.wrap}-horizontal`);\n this.initLayout('horizontal');\n this.createBar('horizontal');\n }\n\n this.bindEvents();\n\n this.trigger('ready');\n }\n\n bindEvents() {\n if (this.options.responsive) {\n $(window).on(this.eventNameWithId('orientationchange'), () => {\n this.update();\n });\n $(window).on(this.eventNameWithId('resize'), this.throttle(() => {\n this.update();\n }, this.options.throttle));\n }\n\n if (!this.horizontal && !this.vertical) {\n return;\n }\n\n let that = this;\n\n this.$wrap.on(this.eventName('mouseenter'), () => {\n that.$wrap.addClass(this.options.hoveringClass);\n that.enter('hovering');\n that.trigger('hover');\n });\n\n this.$wrap.on(this.eventName('mouseleave'), () => {\n that.$wrap.removeClass(this.options.hoveringClass);\n\n if (!that.is('hovering')) {\n return;\n }\n that.leave('hovering');\n that.trigger('hovered');\n });\n\n if (this.options.showOnHover) {\n if (this.options.showOnBarHover) {\n this.$bar.on('asScrollbar::hover', () => {\n if(that.horizontal){\n that.showBar('horizontal');\n }\n if(that.vertical){\n that.showBar('vertical');\n }\n }).on('asScrollbar::hovered', () => {\n if(that.horizontal){\n that.hideBar('horizontal');\n }\n if(that.vertical){\n that.hideBar('vertical');\n }\n });\n } else {\n this.$element.on(`${NAMESPACE$1}::hover`, $.proxy(this.showBar, this));\n this.$element.on(`${NAMESPACE$1}::hovered`, $.proxy(this.hideBar, this));\n }\n }\n\n this.$container.on(this.eventName('scroll'), () => {\n if (that.horizontal) {\n let oldLeft = that.offsetLeft;\n that.offsetLeft = that.getOffset('horizontal');\n\n if (oldLeft !== that.offsetLeft) {\n that.trigger('scroll', that.getPercentOffset('horizontal'), 'horizontal');\n\n if (that.offsetLeft === 0) {\n that.trigger('scrolltop', 'horizontal');\n }\n if (that.offsetLeft === that.getScrollLength('horizontal')) {\n that.trigger('scrollend', 'horizontal');\n }\n }\n }\n\n if (that.vertical) {\n let oldTop = that.offsetTop;\n\n that.offsetTop = that.getOffset('vertical');\n\n if (oldTop !== that.offsetTop) {\n that.trigger('scroll', that.getPercentOffset('vertical'), 'vertical');\n\n if (that.offsetTop === 0) {\n that.trigger('scrolltop', 'vertical');\n }\n if (that.offsetTop === that.getScrollLength('vertical')) {\n that.trigger('scrollend', 'vertical');\n }\n }\n }\n });\n\n this.$element.on(`${NAMESPACE$1}::scroll`, (e, api, value, direction) => {\n if (!that.is('scrolling')) {\n that.enter('scrolling');\n that.$wrap.addClass(that.options.scrollingClass);\n }\n let bar = api.getBarApi(direction);\n\n bar.moveTo(conventToPercentage(value), false, true);\n\n clearTimeout(that._timeoutId);\n that._timeoutId = setTimeout(() => {\n that.$wrap.removeClass(that.options.scrollingClass);\n that.leave('scrolling');\n }, 200);\n });\n\n this.$bar.on('asScrollbar::change', (e, api, value) => {\n if(typeof e.target.direction === 'string') {\n that.scrollTo(e.target.direction, conventToPercentage(value), false, true);\n }\n });\n\n this.$bar.on('asScrollbar::drag', () => {\n that.$wrap.addClass(that.options.draggingClass);\n }).on('asScrollbar::dragged', () => {\n that.$wrap.removeClass(that.options.draggingClass);\n });\n }\n\n unbindEvents() {\n this.$wrap.off(this.eventName());\n this.$element.off(`${NAMESPACE$1}::scroll`).off(`${NAMESPACE$1}::hover`).off(`${NAMESPACE$1}::hovered`);\n this.$container.off(this.eventName());\n $(window).off(this.eventNameWithId());\n }\n\n initLayout(direction) {\n if (direction === 'vertical') {\n this.$container.css('height', this.$wrap.height());\n }\n let attributes = this.attributes[direction],\n container = this.$container[0];\n\n // this.$container.css(attributes.overflow, 'scroll');\n\n let parentLength = container.parentNode[attributes.crossClientLength],\n scrollbarWidth = this.getBrowserScrollbarWidth(direction);\n\n this.$content.css(attributes.crossLength, `${parentLength}px`);\n this.$container.css(attributes.crossLength, `${scrollbarWidth + parentLength}px`);\n\n if (scrollbarWidth === 0 && isFFLionScrollbar) {\n this.$container.css(attributes.ffPadding, 16);\n }\n }\n\n createBar(direction) {\n let options = $.extend(this.options.scrollbar, {\n namespace: this.classes.bar,\n direction: direction,\n useCssTransitions: false,\n keyboard: false\n });\n let $bar = $('<div>');\n $bar.asScrollbar(options);\n\n if (this.options.showOnHover) {\n $bar.addClass(this.classes.barHide);\n }\n\n $bar.appendTo(this.$wrap);\n\n this[`$${direction}`] = $bar;\n\n if (this.$bar === null) {\n this.$bar = $bar;\n } else {\n this.$bar = this.$bar.add($bar);\n }\n\n this.updateBarHandle(direction);\n }\n\n trigger(eventType, ...params) {\n const data = [this].concat(params);\n\n // event\n this.$element.trigger(`${NAMESPACE$1}::${eventType}`, data);\n\n // callback\n eventType = eventType.replace(/\\b\\w+\\b/g, (word) => {\n return word.substring(0, 1).toUpperCase() + word.substring(1);\n });\n const onFunction = `on${eventType}`;\n\n if (typeof this.options[onFunction] === 'function') {\n this.options[onFunction].apply(this, params);\n }\n }\n\n /**\n * Checks whether the carousel is in a specific state or not.\n */\n is(state) {\n return this._states[state] && this._states[state] > 0;\n }\n\n /**\n * Enters a state.\n */\n enter(state) {\n if (this._states[state] === undefined) {\n this._states[state] = 0;\n }\n\n // this._states[state]++;\n this._states[state] = 1;\n }\n\n /**\n * Leaves a state.\n */\n leave(state) {\n // this._states[state]--;\n\n this._states[state] = -1;\n }\n\n eventName(events) {\n if (typeof events !== 'string' || events === '') {\n return `.${this.options.namespace}`;\n }\n\n events = events.split(' ');\n let length = events.length;\n for (let i = 0; i < length; i++) {\n events[i] = `${events[i]}.${this.options.namespace}`;\n }\n return events.join(' ');\n }\n\n eventNameWithId(events) {\n if (typeof events !== 'string' || events === '') {\n return `.${this.options.namespace}-${this.instanceId}`;\n }\n\n events = events.split(' ');\n let length = events.length;\n for (let i = 0; i < length; i++) {\n events[i] = `${events[i]}.${this.options.namespace}-${this.instanceId}`;\n }\n return events.join(' ');\n }\n\n /**\n * _throttle\n * @description Borrowed from Underscore.js\n */\n throttle(func, wait) {\n const _now = Date.now || function() {\n return new Date().getTime();\n };\n\n let timeout;\n let context;\n let args;\n let result;\n let previous = 0;\n let later = function() {\n previous = _now();\n timeout = null;\n result = func.apply(context, args);\n if (!timeout) {\n context = args = null;\n }\n };\n\n return (...params) => {\n /*eslint consistent-this: \"off\"*/\n let now = _now();\n let remaining = wait - (now - previous);\n context = this;\n args = params;\n if (remaining <= 0 || remaining > wait) {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n previous = now;\n result = func.apply(context, args);\n if (!timeout) {\n context = args = null;\n }\n } else if (!timeout) {\n timeout = setTimeout(later, remaining);\n }\n return result;\n };\n }\n\n getBrowserScrollbarWidth(direction) {\n let attributes = this.attributes[direction],\n outer, outerStyle;\n if (attributes.scrollbarWidth) {\n return attributes.scrollbarWidth;\n }\n outer = document.createElement('div');\n outerStyle = outer.style;\n outerStyle.position = 'absolute';\n outerStyle.width = '100px';\n outerStyle.height = '100px';\n outerStyle.overflow = 'scroll';\n outerStyle.top = '-9999px';\n document.body.appendChild(outer);\n attributes.scrollbarWidth = outer[attributes.offset] - outer[attributes.clientLength];\n document.body.removeChild(outer);\n return attributes.scrollbarWidth;\n }\n\n getOffset(direction) {\n let attributes = this.attributes[direction],\n container = this.$container[0];\n\n return (container[attributes.pageOffset] || container[attributes.scroll]);\n }\n\n getPercentOffset(direction) {\n return this.getOffset(direction) / this.getScrollLength(direction);\n }\n\n getContainerLength(direction) {\n return this.$container[0][this.attributes[direction].clientLength];\n }\n\n getScrollLength(direction) {\n let scrollLength = this.$content[0][this.attributes[direction].scrollLength];\n return scrollLength - this.getContainerLength(direction);\n }\n\n scrollTo(direction, value, trigger, sync) {\n let type = typeof value;\n\n if (type === 'string') {\n if (isPercentage(value)) {\n value = convertPercentageToFloat(value) * this.getScrollLength(direction);\n }\n\n value = parseFloat(value);\n type = 'number';\n }\n\n if (type !== 'number') {\n return;\n }\n\n this.move(direction, value, trigger, sync);\n }\n\n scrollBy(direction, value, trigger, sync) {\n let type = typeof value;\n\n if (type === 'string') {\n if (isPercentage(value)) {\n value = convertPercentageToFloat(value) * this.getScrollLength(direction);\n }\n\n value = parseFloat(value);\n type = 'number';\n }\n\n if (type !== 'number') {\n return;\n }\n\n this.move(direction, this.getOffset(direction) + value, trigger, sync);\n }\n\n move(direction, value, trigger, sync) {\n if (this[direction] !== true || typeof value !== 'number') {\n return;\n }\n\n this.enter('moving');\n\n if (value < 0) {\n value = 0;\n } else if (value > this.getScrollLength(direction)) {\n value = this.getScrollLength(direction);\n }\n\n let attributes = this.attributes[direction];\n\n var that = this;\n let callback = () => {\n that.leave('moving');\n };\n\n if (sync) {\n this.$container[0][attributes.scroll] = value;\n\n if (trigger !== false) {\n this.trigger('change', value / this.getScrollLength(direction), direction);\n }\n callback();\n } else {\n this.enter('animating');\n\n let startTime = getTime();\n let start = this.getOffset(direction);\n let end = value;\n\n let run = (time) => {\n let percent = (time - startTime) / that.options.duration;\n\n if (percent > 1) {\n percent = 1;\n }\n\n percent = that.easing.fn(percent);\n\n let current = parseFloat(start + percent * (end - start), 10);\n that.$container[0][attributes.scroll] = current;\n\n if (trigger !== false) {\n that.trigger('change', value / that.getScrollLength(direction), direction);\n }\n\n if (percent === 1) {\n window.cancelAnimationFrame(that._frameId);\n that._frameId = null;\n\n that.leave('animating');\n callback();\n } else {\n that._frameId = window.requestAnimationFrame(run);\n }\n };\n\n this._frameId = window.requestAnimationFrame(run);\n }\n }\n\n scrollXto(value, trigger, sync) {\n return this.scrollTo('horizontal', value, trigger, sync);\n }\n\n scrollYto(value, trigger, sync) {\n return this.scrollTo('vertical', value, trigger, sync);\n }\n\n scrollXby(value, trigger, sync) {\n return this.scrollBy('horizontal', value, trigger, sync);\n }\n\n scrollYby(value, trigger, sync) {\n return this.scrollBy('vertical', value, trigger, sync);\n }\n\n getBar(direction) {\n if (direction && this[`$${direction}`]) {\n return this[`$${direction}`];\n }\n return this.$bar;\n }\n\n getBarApi(direction) {\n return this.getBar(direction).data('asScrollbar');\n }\n\n getBarX() {\n return this.getBar('horizontal');\n }\n\n getBarY() {\n return this.getBar('vertical');\n }\n\n showBar(direction) {\n this.getBar(direction).removeClass(this.classes.barHide);\n }\n\n hideBar(direction) {\n this.getBar(direction).addClass(this.classes.barHide);\n }\n\n updateBarHandle(direction) {\n let api = this.getBarApi(direction);\n\n if (!api) {\n return;\n }\n\n let containerLength = this.getContainerLength(direction),\n scrollLength = this.getScrollLength(direction);\n\n if (scrollLength > 0) {\n if (api.is('disabled')) {\n api.enable();\n }\n api.setHandleLength(api.getBarLength() * containerLength / (scrollLength + containerLength), true);\n } else {\n\n api.disable();\n }\n }\n\n disable() {\n if (!this.is('disabled')) {\n this.enter('disabled');\n this.$wrap.addClass(this.options.disabledClass).removeClass(this.options.enabledClass);\n\n this.unbindEvents();\n this.unStyle();\n }\n\n this.trigger('disable');\n }\n\n enable() {\n if (this.is('disabled')) {\n this.leave('disabled');\n this.$wrap.addClass(this.options.enabledClass).removeClass(this.options.disabledClass);\n\n this.bindEvents();\n this.update();\n }\n\n this.trigger('enable');\n }\n\n update() {\n if (this.is('disabled')) {\n return;\n }\n if(this.$element.is(':visible')) {\n if (this.vertical) {\n this.initLayout('vertical');\n this.updateBarHandle('vertical');\n }\n if (this.horizontal) {\n this.initLayout('horizontal');\n this.updateBarHandle('horizontal');\n }\n }\n }\n\n unStyle() {\n if (this.horizontal) {\n this.$container.css({\n height: '',\n 'padding-bottom': ''\n });\n this.$content.css({\n height: ''\n });\n }\n if (this.vertical) {\n this.$container.css({\n width: '',\n height: '',\n 'padding-right': ''\n });\n this.$content.css({\n width: ''\n });\n }\n if (!this.options.containerSelector) {\n this.$wrap.css({\n height: ''\n });\n }\n }\n\n destroy() {\n this.$wrap.removeClass(`${this.classes.wrap}-vertical`)\n .removeClass(`${this.classes.wrap}-horizontal`)\n .removeClass(this.classes.wrap)\n .removeClass(this.options.enabledClass)\n .removeClass(this.classes.disabledClass);\n this.unStyle();\n\n if (this.$bar) {\n this.$bar.remove();\n }\n\n this.unbindEvents();\n\n if (this.options.containerSelector) {\n this.$container.removeClass(this.classes.container);\n } else {\n this.$container.unwrap();\n }\n if (!this.options.contentSelector) {\n this.$content.unwrap();\n }\n this.$content.removeClass(this.classes.content);\n this.$element.data(NAMESPACE$1, null);\n this.trigger('destroy');\n }\n\n static setDefaults(options) {\n $.extend(DEFAULTS, $.isPlainObject(options) && options);\n }\n}\n\nvar info = {\n version:'0.4.10'\n};\n\nconst NAMESPACE = 'asScrollable';\nconst OtherAsScrollable = $.fn.asScrollable;\n\nconst jQueryAsScrollable = function(options, ...args) {\n if (typeof options === 'string') {\n let method = options;\n\n if (/^_/.test(method)) {\n return false;\n } else if ((/^(get)/.test(method))) {\n let instance = this.first().data(NAMESPACE);\n if (instance && typeof instance[method] === 'function') {\n return instance[method](...args);\n }\n } else {\n return this.each(function() {\n let instance = $.data(this, NAMESPACE);\n if (instance && typeof instance[method] === 'function') {\n instance[method](...args);\n }\n });\n }\n }\n\n return this.each(function() {\n if (!$(this).data(NAMESPACE)) {\n $(this).data(NAMESPACE, new AsScrollable(this, options));\n }\n });\n};\n\n$.fn.asScrollable = jQueryAsScrollable;\n\n$.asScrollable = $.extend({\n setDefaults: AsScrollable.setDefaults,\n noConflict: function() {\n $.fn.asScrollable = OtherAsScrollable;\n return jQueryAsScrollable;\n }\n}, info);\n"]}