|
|
@@ -3,7 +3,7 @@
|
|
|
import { isDef, isUndef } from 'shared/util'
|
|
|
import { updateListeners } from 'core/vdom/helpers/index'
|
|
|
import { isIE, supportsPassive } from 'core/util/env'
|
|
|
-import { RANGE_TOKEN } from 'web/compiler/directives/model'
|
|
|
+import { RANGE_TOKEN, CHECKBOX_RADIO_TOKEN } from 'web/compiler/directives/model'
|
|
|
|
|
|
// normalize v-model event tokens that can only be determined at runtime.
|
|
|
// it's important to place the event as the first in the array because
|
|
|
@@ -17,6 +17,13 @@ function normalizeEvents (on) {
|
|
|
on[event] = [].concat(on[RANGE_TOKEN], on[event] || [])
|
|
|
delete on[RANGE_TOKEN]
|
|
|
}
|
|
|
+ // This was originally intended to fix #4521 but no longer necessary
|
|
|
+ // after 2.5. Keeping it for backwards compat with generated code from < 2.4
|
|
|
+ /* istanbul ignore if */
|
|
|
+ if (isDef(on[CHECKBOX_RADIO_TOKEN])) {
|
|
|
+ on.change = [].concat(on[CHECKBOX_RADIO_TOKEN], on.change || [])
|
|
|
+ delete on[CHECKBOX_RADIO_TOKEN]
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
let target: HTMLElement
|