Skip to content

Commit

Permalink
removing some lines
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianhelbig committed Aug 9, 2017
1 parent 55822dc commit 370bb90
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ember install ember-router-scroll
```

### Options
You can specify the id of an element for which the scroll position is saved and set. Default is `window` for using the scroll position of the whole viewport. You can pass an options object in your applications `config/environment.js` file.
You can specify the id of an element for which the scroll position is saved and set. Default is `window` for using the scroll position of the whole viewport. You can pass an options object in your application's `config/environment.js` file.

```javascript
ENV['routerScroll'] = {
Expand Down
1 change: 0 additions & 1 deletion addon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export default Mixin.create({
if (!preserveScrollPosition) {
if ('window' === scrollElement) {
window.scrollTo(scrollPosition.x, scrollPosition.y);

} else if ('#' === scrollElement.charAt(0)) {
let element = document.getElementById(scrollElement.substring(1));

Expand Down
1 change: 0 additions & 1 deletion addon/services/router-scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export default Service.extend({
if ('window' === scrollElement) {
x = window.scrollX;
y = window.scrollY;

} else if ('#' === scrollElement.charAt(0)) {
let element = document.getElementById(scrollElement.substring(1));

Expand Down

0 comments on commit 370bb90

Please sign in to comment.