Skip to content

Commit dc7a0e1

Browse files
committed
return tween instance
useful to, for instance, stop animations
1 parent 0737421 commit dc7a0e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/**
32
* Module dependencies.
43
*/
@@ -49,6 +48,8 @@ function scrollTo(x, y, options) {
4948
}
5049

5150
animate();
51+
52+
return tween;
5253
}
5354

5455
/**

0 commit comments

Comments
 (0)