From 0c5bfb599211b8be4a5c534c3eedba0b7838b9b6 Mon Sep 17 00:00:00 2001 From: "Benny C. Wong" Date: Tue, 2 Aug 2016 23:14:35 -0700 Subject: [PATCH] move things to the right place instead of the wrong place --- README.md | 4 ++-- addon/{mixins => }/index.js | 0 app/{mixins => }/index.js | 0 package.json | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename addon/{mixins => }/index.js (100%) rename app/{mixins => }/index.js (100%) diff --git a/README.md b/README.md index c746ef7e..2af18212 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ or Add this in the dependencies block of your `package.json` file: ```json -"ember-router-scroll": "dollarshaveclub/ember-router-scroll#v0.1.0", +"ember-router-scroll": "dollarshaveclub/ember-router-scroll#v0.0.3", ``` ### Step 2: Import ember-router-scroll @@ -85,7 +85,7 @@ const Router = Ember.Router.extend(RouterScrollMixin,{} ![before-preserve](https://cloud.githubusercontent.com/assets/4430436/17122971/0a1e34ce-5295-11e6-8d30-9f687dd69dbb.gif) Notice the unwanted scroll to top in this case. -### After: +### After: ![after-preserve](https://cloud.githubusercontent.com/assets/4430436/17122969/07acbb48-5295-11e6-9900-f9ba519affa4.gif) Adding a query parameter fixes this issue. diff --git a/addon/mixins/index.js b/addon/index.js similarity index 100% rename from addon/mixins/index.js rename to addon/index.js diff --git a/app/mixins/index.js b/app/index.js similarity index 100% rename from app/mixins/index.js rename to app/index.js diff --git a/package.json b/package.json index 5e64ebfd..563f0101 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ember-router-scroll", - "version": "0.1.0", + "version": "0.0.3", "description": "Scroll to top with preserved browser history scroll position", "directories": { "doc": "doc",