Browse Source

Bug Fix: Elements should've not been stored as a local variable.

NaotoshiFujita 5 years ago
parent
commit
0e8ddb7ee2
3 changed files with 3 additions and 10 deletions
  1. 1 1
      dist/js/splide.min.js
  2. 1 1
      package.json
  3. 1 8
      src/js/components/arrows/index.js

File diff suppressed because it is too large
+ 1 - 1
dist/js/splide.min.js


+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "@splidejs/splide",
   "name": "@splidejs/splide",
-  "version": "1.0.6",
+  "version": "1.0.7",
   "description": "Splide is a lightweight and powerful slider without any dependencies.",
   "description": "Splide is a lightweight and powerful slider without any dependencies.",
   "author": "Naotoshi Fujita",
   "author": "Naotoshi Fujita",
   "license": "MIT",
   "license": "MIT",

+ 1 - 8
src/js/components/arrows/index.js

@@ -40,13 +40,6 @@ export default ( Splide, Components, name ) => {
 	 */
 	 */
 	const root = Splide.root;
 	const root = Splide.root;
 
 
-	/**
-	 * Store Elements component.
-	 *
-	 * @type {Object}
-	 */
-	const Elements = Components.Elements;
-
 	/**
 	/**
 	 * Arrows component object.
 	 * Arrows component object.
 	 *
 	 *
@@ -59,7 +52,7 @@ export default ( Splide, Components, name ) => {
 		 * @return {boolean} - True if the option is true or arrow elements were found.
 		 * @return {boolean} - True if the option is true or arrow elements were found.
 		 */
 		 */
 		required: Splide.options.arrows
 		required: Splide.options.arrows
-			|| ( Elements.arrows && Elements.arrows.prev && Elements.arrows.next ),
+			|| ( Components.Elements.arrows && Components.Elements.arrows.prev && Components.Elements.arrows.next ),
 
 
 		/**
 		/**
 		 * Called when the component is mounted.
 		 * Called when the component is mounted.

Some files were not shown because too many files changed in this diff