We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1266936 commit 2372893Copy full SHA for 2372893
js/theme.js
@@ -31,7 +31,7 @@ function ThemeNav () {
31
if (!self.linkScroll) {
32
if (!self.winScroll) {
33
self.winScroll = true;
34
- requestAnimationFrame(self.onScroll.bind(self));
+ requestAnimationFrame(function() { self.onScroll(); });
35
}
36
37
});
@@ -40,7 +40,7 @@ function ThemeNav () {
40
self.win.on('resize', function () {
41
if (!self.winResize) {
42
self.winResize = true;
43
- requestAnimationFrame(self.onResize.bind(self));
+ requestAnimationFrame(function() { self.onResize(); });
44
45
46
0 commit comments