don't throw reference error if event is synthetic and forgets to pass e arg

This commit is contained in:
Leo Horie 2016-04-13 15:32:58 -04:00
parent 4f34acc032
commit cb966d9088
3 changed files with 3 additions and 3 deletions

View file

@ -1503,7 +1503,7 @@
m.withAttr = function (prop, withAttrCallback, callbackThis) {
return function (e) {
e = e || event
e = e || window.event
/* eslint-disable no-invalid-this */
var currentTarget = e.currentTarget || this
var _this = callbackThis || this

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