don't throw reference error if event is synthetic and forgets to pass e arg
This commit is contained in:
parent
4f34acc032
commit
cb966d9088
3 changed files with 3 additions and 3 deletions
|
|
@ -1503,7 +1503,7 @@
|
||||||
|
|
||||||
m.withAttr = function (prop, withAttrCallback, callbackThis) {
|
m.withAttr = function (prop, withAttrCallback, callbackThis) {
|
||||||
return function (e) {
|
return function (e) {
|
||||||
e = e || event
|
e = e || window.event
|
||||||
/* eslint-disable no-invalid-this */
|
/* eslint-disable no-invalid-this */
|
||||||
var currentTarget = e.currentTarget || this
|
var currentTarget = e.currentTarget || this
|
||||||
var _this = callbackThis || this
|
var _this = callbackThis || this
|
||||||
|
|
|
||||||
2
mithril.min.js
vendored
2
mithril.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue