diff --git a/README.md b/README.md index f7edabee..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.0.1", +"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/router-scroll.js b/addon/index.js similarity index 100% rename from addon/mixins/router-scroll.js rename to addon/index.js diff --git a/app/mixins/ember-router-scroll.js b/app/index.js similarity index 100% rename from app/mixins/ember-router-scroll.js rename to app/index.js diff --git a/package.json b/package.json index 2f8e075d..563f0101 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ember-router-scroll", - "version": "0.0.2", + "version": "0.0.3", "description": "Scroll to top with preserved browser history scroll position", "directories": { "doc": "doc", @@ -19,7 +19,7 @@ ] } }, - "repository": "", + "repository": "dollarshaveclub/ember-router-scroll", "engines": { "node": ">= 0.10.0" },