vendor/assets/javascripts/jquery.lory.js in lory-rails-0.1.3 vs vendor/assets/javascripts/jquery.lory.js in lory-rails-0.1.4
- old
+ new
@@ -5,11 +5,11 @@
define([], factory);
else {
var a = factory();
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
}
-})(this, function() {
+})(typeof self !== 'undefined' ? self : this, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
@@ -41,13 +41,10 @@
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
-/******/ // identity function for calling harmony imports with the correct context
-/******/ __webpack_require__.i = function(value) { return value; };
-/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
@@ -71,11 +68,11 @@
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
-/******/ return __webpack_require__(__webpack_require__.s = 7);
+/******/ return __webpack_require__(__webpack_require__.s = 8);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports) {
@@ -116,23 +113,23 @@
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /* globals jQuery */
exports.lory = lory;
-var _detectPrefixes = __webpack_require__(3);
+var _detectPrefixes = __webpack_require__(2);
var _detectPrefixes2 = _interopRequireDefault(_detectPrefixes);
-var _detectSupportsPassive = __webpack_require__(4);
+var _detectSupportsPassive = __webpack_require__(3);
var _detectSupportsPassive2 = _interopRequireDefault(_detectSupportsPassive);
-var _dispatchEvent = __webpack_require__(5);
+var _dispatchEvent = __webpack_require__(4);
var _dispatchEvent2 = _interopRequireDefault(_dispatchEvent);
-var _defaults = __webpack_require__(2);
+var _defaults = __webpack_require__(6);
var _defaults2 = _interopRequireDefault(_defaults);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -607,11 +604,10 @@
if (typeof isScrolling === 'undefined') {
isScrolling = !!(isScrolling || Math.abs(delta.x) < Math.abs(delta.y));
}
if (!isScrolling && touchOffset) {
- event.preventDefault();
translate(position.x + delta.x, 0, null);
}
// may be
dispatchSliderEvent('on', 'touchmove', {
@@ -708,122 +704,10 @@
/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
-
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = {
- /**
- * slides scrolled at once
- * @slidesToScroll {Number}
- */
- slidesToScroll: 1,
-
- /**
- * time in milliseconds for the animation of a valid slide attempt
- * @slideSpeed {Number}
- */
- slideSpeed: 300,
-
- /**
- * time in milliseconds for the animation of the rewind after the last slide
- * @rewindSpeed {Number}
- */
- rewindSpeed: 600,
-
- /**
- * time for the snapBack of the slider if the slide attempt was not valid
- * @snapBackSpeed {Number}
- */
- snapBackSpeed: 200,
-
- /**
- * Basic easing functions: https://developer.mozilla.org/de/docs/Web/CSS/transition-timing-function
- * cubic bezier easing functions: http://easings.net/de
- * @ease {String}
- */
- ease: 'ease',
-
- /**
- * if slider reached the last slide, with next click the slider goes back to the startindex.
- * use infinite or rewind, not both
- * @rewind {Boolean}
- */
- rewind: false,
-
- /**
- * number of visible slides or false
- * use infinite or rewind, not both
- * @infinite {number}
- */
- infinite: false,
-
- /**
- * the slide index to show when the slider is initialized.
- * @initialIndex {number}
- */
- initialIndex: 0,
-
- /**
- * class name for slider frame
- * @classNameFrame {string}
- */
- classNameFrame: 'js_frame',
-
- /**
- * class name for slides container
- * @classNameSlideContainer {string}
- */
- classNameSlideContainer: 'js_slides',
-
- /**
- * class name for slider prev control
- * @classNamePrevCtrl {string}
- */
- classNamePrevCtrl: 'js_prev',
-
- /**
- * class name for slider next control
- * @classNameNextCtrl {string}
- */
- classNameNextCtrl: 'js_next',
-
- /**
- * class name for current active slide
- * if emptyString then no class is set
- * @classNameActiveSlide {string}
- */
- classNameActiveSlide: 'active',
-
- /**
- * enables mouse events for swiping on desktop devices
- * @enableMouseEvents {boolean}
- */
- enableMouseEvents: false,
-
- /**
- * window instance
- * @window {object}
- */
- window: typeof window !== 'undefined' ? window : null,
-
- /**
- * If false, slides lory to the first slide on window resize.
- * @rewindOnResize {boolean}
- */
- rewindOnResize: true
-};
-
-/***/ }),
-/* 3 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
/* WEBPACK VAR INJECTION */(function(global) {
Object.defineProperty(exports, "__esModule", {
value: true
});
@@ -879,11 +763,11 @@
};
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
/***/ }),
-/* 4 */
+/* 3 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@@ -907,22 +791,22 @@
return supportsPassive;
}
/***/ }),
-/* 5 */
+/* 4 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = dispatchEvent;
-var _customEvent = __webpack_require__(6);
+var _customEvent = __webpack_require__(5);
var _customEvent2 = _interopRequireDefault(_customEvent);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -942,11 +826,11 @@
target.dispatchEvent(event);
}
/***/ }),
-/* 6 */
+/* 5 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {
var NativeCustomEvent = global.CustomEvent;
@@ -997,10 +881,123 @@
}
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
/***/ }),
-/* 7 */
+/* 6 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = {
+ /**
+ * slides scrolled at once
+ * @slidesToScroll {Number}
+ */
+ slidesToScroll: 1,
+
+ /**
+ * time in milliseconds for the animation of a valid slide attempt
+ * @slideSpeed {Number}
+ */
+ slideSpeed: 300,
+
+ /**
+ * time in milliseconds for the animation of the rewind after the last slide
+ * @rewindSpeed {Number}
+ */
+ rewindSpeed: 600,
+
+ /**
+ * time for the snapBack of the slider if the slide attempt was not valid
+ * @snapBackSpeed {Number}
+ */
+ snapBackSpeed: 200,
+
+ /**
+ * Basic easing functions: https://developer.mozilla.org/de/docs/Web/CSS/transition-timing-function
+ * cubic bezier easing functions: http://easings.net/de
+ * @ease {String}
+ */
+ ease: 'ease',
+
+ /**
+ * if slider reached the last slide, with next click the slider goes back to the startindex.
+ * use infinite or rewind, not both
+ * @rewind {Boolean}
+ */
+ rewind: false,
+
+ /**
+ * number of visible slides or false
+ * use infinite or rewind, not both
+ * @infinite {number}
+ */
+ infinite: false,
+
+ /**
+ * the slide index to show when the slider is initialized.
+ * @initialIndex {number}
+ */
+ initialIndex: 0,
+
+ /**
+ * class name for slider frame
+ * @classNameFrame {string}
+ */
+ classNameFrame: 'js_frame',
+
+ /**
+ * class name for slides container
+ * @classNameSlideContainer {string}
+ */
+ classNameSlideContainer: 'js_slides',
+
+ /**
+ * class name for slider prev control
+ * @classNamePrevCtrl {string}
+ */
+ classNamePrevCtrl: 'js_prev',
+
+ /**
+ * class name for slider next control
+ * @classNameNextCtrl {string}
+ */
+ classNameNextCtrl: 'js_next',
+
+ /**
+ * class name for current active slide
+ * if emptyString then no class is set
+ * @classNameActiveSlide {string}
+ */
+ classNameActiveSlide: 'active',
+
+ /**
+ * enables mouse events for swiping on desktop devices
+ * @enableMouseEvents {boolean}
+ */
+ enableMouseEvents: false,
+
+ /**
+ * window instance
+ * @window {object}
+ */
+ window: typeof window !== 'undefined' ? window : null,
+
+ /**
+ * If false, slides lory to the first slide on window resize.
+ * @rewindOnResize {boolean}
+ */
+ rewindOnResize: true
+};
+
+/***/ }),
+/* 7 */,
+/* 8 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
\ No newline at end of file