MCPcopy Create free account
hub / github.com/ygs-code/vue / blocker

Function blocker

vue.js:9357–9363  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

9355 !el.__ieph //__ieph 等于假的 标志位
9356 ) {
9357 var blocker = function (e) {
9358 // 如果有多个相同类型事件的事件监听函数绑定到同一个元素,当该类型的事件触发时,它们会按照被添加的顺序执行。如果其中某个监听函数执行了 event.stopImmediatePropagation() 方法,则当前元素剩下的监听函数将不会被执行。
9359 // stopImmediatePropagation 则是阻止事件冒泡
9360 e.stopImmediatePropagation();
9361 //删除input 事件
9362 el.removeEventListener('input', blocker);
9363 };
9364 //添加新的input 事件
9365 el.addEventListener('input', blocker);
9366 // $flow-disable-line

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected