Skip to content

Commit

Permalink
self -> this in ScrollResponder
Browse files Browse the repository at this point in the history
Summary:
I *think* this is causing a crash for me in a release build (curiously, not a debug build):
```
ReferenceError: Can't find variable: self
```

I saw this in 0.18.1, which I assume was renamed to v0.19.0-rc.
Closes facebook#5562

Reviewed By: svcscm

Differential Revision: D2866491

Pulled By: androidtrunkagent

fb-gh-sync-id: 196f718bf807c5eef676f66f1e15d7bde9475d5b
  • Loading branch information
jedlau authored and doostin committed Feb 1, 2016
1 parent 868620e commit 8639f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Components/ScrollResponder.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ var ScrollResponderMixin = {
*/
scrollResponderScrollWithoutAnimationTo: function(offsetX: number, offsetY: number) {
console.warn('`scrollResponderScrollWithoutAnimationTo` is deprecated. Use `scrollResponderScrollTo` instead');
self.scrollResponderScrollTo(offsetX, offsetY, false);
this.scrollResponderScrollTo(offsetX, offsetY, false);
},

/**
Expand Down

0 comments on commit 8639f22

Please sign in to comment.