Skip to content

Commit

Permalink
Allow using easing names too
Browse files Browse the repository at this point in the history
  • Loading branch information
rigor789 committed Feb 7, 2017
1 parent 9221bd1 commit 919ff90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -30,7 +30,7 @@ exports.install = function (Vue) {

if (typeof this.value === 'object') {
exports.scrollTo(this.value.el || this.value.element , this.value.duration || 500, {
easing: this.value.easing || exports.easing['ease'],
easing: (typeof this.value.easing === 'string' ? exports.easing[this.value.easing] : this.value.easing) || exports.easing['ease'],
offset: this.value.offset || 0
})
} else {
Expand Down

0 comments on commit 919ff90

Please sign in to comment.