Fix stopImmediatePropagation in IE8, close #2154

This commit is contained in:
afc163 2016-06-23 16:00:30 +08:00
parent e900063865
commit c2942fa530

View File

@ -14,7 +14,9 @@ function noop() {
function stopPropagation(e) {
e.stopPropagation();
e.nativeEvent.stopImmediatePropagation();
if (e.nativeEvent.stopImmediatePropagation) {
e.nativeEvent.stopImmediatePropagation();
}
}
const defaultLocale = {