You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Modifier once for v-on
* Reformat code
* Modifier once for v-on: using removeEventListener instead, bug fix of handler arguments passing, bug fix of modifier ordering problem
* Enhancement of event listener removal which allows rendering of capturing / once events for render function
* Reformat code
@@ -45,8 +47,11 @@ export function updateListeners (
45
47
}
46
48
for(nameinoldOn){
47
49
if(!on[name]){
48
-
event=name.charAt(0)==='!' ? name.slice(1) : name
49
-
remove(event,oldOn[name].invoker)
50
+
once=name.charAt(0)==='~'// Prefixed last, checked first
51
+
event=once ? name.slice(1) : name
52
+
capture=event.charAt(0)==='!'
53
+
event=capture ? event.slice(1) : event
54
+
remove(event,oldOn[name].invoker,capture)// Removal of a capturing listener does not affect a non-capturing version of the same listener, and vice versa.
0 commit comments