Skip to content

Commit

Permalink
update readme - syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
bttf committed Apr 1, 2016
1 parent 72096a2 commit 27e1b5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This ember-cli addon provides two route mixins that will handle scroll preservat

This will save the scrolling position of a route. When the route is re-entered, it will automatically scroll to the previously saved position *only if accessed by the browser's forward and back buttons*. Accessing the route via link-to or address bar will not trigger this behavior. This is by design in order to more closely emulate the HTML experience.

```
```javascript
import ScrollOperatorMixin from 'ember-scroll-operator/mixins/scroll-operator';

export default Ember.Route.extend(ScrollOperatorMixin, {
Expand Down Expand Up @@ -44,7 +44,7 @@ export default Ember.Route.extend(ScrollOperatorMixin, {

A simple mixin to ensure that a route is always scrolled to the top when accessed.

```
```javascript
import ResetScrollMixin from 'ember-scroll-operator/mixins/reset-scroll';

export default Ember.Route.extend(ResetScrollMixin, {
Expand Down

0 comments on commit 27e1b5c

Please sign in to comment.