Merge remote-tracking branch 'origin/master' into next

This commit is contained in:
Leo Horie 2014-08-08 12:40:31 -04:00
commit 35d299f705

View file

@ -390,7 +390,8 @@ Mithril = m = new function app(window, undefined) {
m.withAttr = function(prop, withAttrCallback) {
return function(e) {
e = e || event
withAttrCallback(prop in e.currentTarget ? e.currentTarget[prop] : e.currentTarget.getAttribute(prop))
var currentTarget = e.currentTarget || this
withAttrCallback(prop in currentTarget ? currentTarget[prop] : currentTarget.getAttribute(prop))
}
}