We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.4.2
http://vuejs.org
由于错误的输入,导致的问题: Vue.prototype.$off(eventName, handler) vm._events[eventName]不为空,handler为undefined 会off掉vm._events[eventName]最后一个handler 在events.js 103行的位置
if (cb === fn || cb.fn === fn) { cbs.splice(i, 1) break }
x
当然使用者应该确保输入正确。
The text was updated successfully, but these errors were encountered:
fa6a729
fix: $off should ignore undefined handler argument
85fa28d
fix vuejs#6591
b79ee15
No branches or pull requests
Version
2.4.2
Reproduction link
http://vuejs.org
Steps to reproduce
由于错误的输入,导致的问题:
Vue.prototype.$off(eventName, handler)
vm._events[eventName]不为空,handler为undefined
会off掉vm._events[eventName]最后一个handler
在events.js 103行的位置
What is expected?
x
What is actually happening?
x
当然使用者应该确保输入正确。
The text was updated successfully, but these errors were encountered: