From 3ed1175aafa073effb029460ae2ca399887a7bc5 Mon Sep 17 00:00:00 2001 From: Antoine Boulanger Date: Thu, 8 Aug 2019 11:18:18 -0400 Subject: [PATCH] Change loco-scroll version in package.json and add uppercase to import, add forEach to polyfill --- README.md | 4 ++-- assets/scripts/modules/Scroll.js | 4 ++-- package.json | 2 +- www/index.html | 2 +- www/page.html | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 4e1d185..bb18ddd 100644 --- a/README.md +++ b/README.md @@ -185,9 +185,9 @@ this.load = new modularLoad({ ``` ```js -import locomotiveScroll from 'locomotive-scroll'; +import LocomotiveScroll from 'locomotive-scroll'; -this.scroll = new locomotiveScroll({ +this.scroll = new LocomotiveScroll({ el: this.el, smooth: true }); diff --git a/assets/scripts/modules/Scroll.js b/assets/scripts/modules/Scroll.js index 11e19f0..f180715 100644 --- a/assets/scripts/modules/Scroll.js +++ b/assets/scripts/modules/Scroll.js @@ -1,5 +1,5 @@ import { module } from 'modujs'; -import locomotiveScroll from 'locomotive-scroll'; +import LocomotiveScroll from 'locomotive-scroll'; export default class extends module { constructor(m) { @@ -7,7 +7,7 @@ export default class extends module { } init() { - this.scroll = new locomotiveScroll({ + this.scroll = new LocomotiveScroll({ el: this.el, smooth: true }); diff --git a/package.json b/package.json index 022e0c7..f76ac63 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "version": "1.0.0", "author": "Locomotive ", "dependencies": { - "locomotive-scroll": "github:locomotivemtl/locomotive-scroll#v2", + "locomotive-scroll": "*", "modujs": "*", "modularload": "*", "normalize.css": "*", diff --git a/www/index.html b/www/index.html index 95bf4ef..37c9e97 100644 --- a/www/index.html +++ b/www/index.html @@ -41,7 +41,7 @@ - + diff --git a/www/page.html b/www/page.html index ef3c1c5..bf3eeb5 100644 --- a/www/page.html +++ b/www/page.html @@ -97,7 +97,7 @@ - +