Skip to content

Commit 2372893

Browse files
committed
Remove need for bind()
1 parent 1266936 commit 2372893

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/theme.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function ThemeNav () {
3131
if (!self.linkScroll) {
3232
if (!self.winScroll) {
3333
self.winScroll = true;
34-
requestAnimationFrame(self.onScroll.bind(self));
34+
requestAnimationFrame(function() { self.onScroll(); });
3535
}
3636
}
3737
});
@@ -40,7 +40,7 @@ function ThemeNav () {
4040
self.win.on('resize', function () {
4141
if (!self.winResize) {
4242
self.winResize = true;
43-
requestAnimationFrame(self.onResize.bind(self));
43+
requestAnimationFrame(function() { self.onResize(); });
4444
}
4545
});
4646

0 commit comments

Comments
 (0)