소스 검색

Bug Fix: Arrow elements were not available before mount.

NaotoshiFujita 5 년 전
부모
커밋
2b50f5b899
3개의 변경된 파일5개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 1
      dist/js/splide.min.js
  2. 1 1
      package.json
  3. 3 4
      src/js/components/arrows/index.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
dist/js/splide.min.js


+ 1 - 1
package.json

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

+ 3 - 4
src/js/components/arrows/index.js

@@ -47,12 +47,11 @@ export default ( Splide, Components, name ) => {
 	 */
 	const Arrows = {
 		/**
-		 * Required when the arrows option is true or arrow elements were found.
+		 * Required when the arrows option is true.
 		 *
-		 * @return {boolean} - True if the option is true or arrow elements were found.
+		 * @type {boolean}
 		 */
-		required: Splide.options.arrows
-			|| ( Components.Elements.arrows && Components.Elements.arrows.prev && Components.Elements.arrows.next ),
+		required: Splide.options.arrows,
 
 		/**
 		 * Called when the component is mounted.

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.