Skip to content

Commit

Permalink
Released v0.5.5.
Browse files Browse the repository at this point in the history
  • Loading branch information
oblador committed May 5, 2014
1 parent b11c47e commit d72d9ab
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions angular-scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,14 @@ run(function($window, $q, cancelAnimation, requestAnimation, duScrollEasing) {
};

proto.scrollTo = function(left, top, duration, easing) {
var aliasFn;
if(angular.isElement(left)) {
return this.scrollToElement(left, 0, top, duration);
aliasFn = this.scrollToElement;
} else if(duration) {
aliasFn = this.scrollToAnimated;
}
if(duration) {
return this.scrollToAnimated.apply(this, arguments);
if(aliasFn) {
return aliasFn.apply(this, arguments);
}
var el = unwrap(this);
if(isDocument(el)) {
Expand Down
2 changes: 1 addition & 1 deletion angular-scroll.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d72d9ab

Please sign in to comment.