WordPress/waypoints.js Uncaught TypeError: Illegal invocation
WordPress/waypoints.js Uncaught TypeError: Illegal invocation
使用 WP 4.1,自定义 js
var waypoints = $('#about').waypoint({
handler: function(direction) {
console.log(this.element.id + ' hit')
}
})
在我的控制台中出现此错误
Uncaught TypeError: Illegal invocationjquery.waypoints.min.js?ver=3.0.1:7
(anonymous function)jquery.js?ver=1.11.1:3 m.event.dispatchjquery.js?ver=1.11.1:3 r.handle
非常感谢任何帮助。
这是 Waypoints 中的错误,必须使用 window
作为上下文调用 fix open that will be merged soon. The error stems from the fact that requestAnimationFrame。
更新:该修复已在 3.1.0
。
使用 WP 4.1,自定义 js
var waypoints = $('#about').waypoint({
handler: function(direction) {
console.log(this.element.id + ' hit')
}
})
在我的控制台中出现此错误
Uncaught TypeError: Illegal invocationjquery.waypoints.min.js?ver=3.0.1:7
(anonymous function)jquery.js?ver=1.11.1:3 m.event.dispatchjquery.js?ver=1.11.1:3 r.handle
非常感谢任何帮助。
这是 Waypoints 中的错误,必须使用 window
作为上下文调用 fix open that will be merged soon. The error stems from the fact that requestAnimationFrame。
更新:该修复已在 3.1.0
。