私は TodoMVC ソースを調べていて、このヘルパーに出くわしました:
// addEventListener wrapper:
window.$on = function (target, type, callback, useCapture) {
target.addEventListener(type, callback, !!useCapture);
};
どうしたの!!useCapture
?
私は TodoMVC ソースを調べていて、このヘルパーに出くわしました:
// addEventListener wrapper:
window.$on = function (target, type, callback, useCapture) {
target.addEventListener(type, callback, !!useCapture);
};
どうしたの!!useCapture
?