Skip to content

Commit b542027

Browse files
committed
Rename to "bare"
1 parent 38f51b0 commit b542027

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/compiler/codegen/events.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const modifierCode: { [key: string]: string } = {
3232
left: genGuard(`'button' in $event && $event.button !== 0`),
3333
middle: genGuard(`'button' in $event && $event.button !== 1`),
3434
right: genGuard(`'button' in $event && $event.button !== 2`),
35-
plain: genGuard(`$event.ctrlKey || $event.shiftKey || $event.altKey || $event.metaKey`)
35+
bare: genGuard(`$event.ctrlKey || $event.shiftKey || $event.altKey || $event.metaKey`)
3636
}
3737

3838
export function genHandlers (

src/core/instance/proxy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if (process.env.NODE_ENV !== 'production') {
2727
Proxy.toString().match(/native code/)
2828

2929
if (hasProxy) {
30-
const isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,plain')
30+
const isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,bare')
3131
config.keyCodes = new Proxy(config.keyCodes, {
3232
set (target, key, value) {
3333
if (isBuiltInModifier(key)) {

test/unit/modules/compiler/codegen.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ describe('codegen', () => {
299299
`with(this){return _c('input',{on:{"click":function($event){if(!$event.metaKey)return null;onClick($event)}}})}`
300300
)
301301
assertCodegen(
302-
'<input @click.plain="onClick">',
302+
'<input @click.bare="onClick">',
303303
`with(this){return _c('input',{on:{"click":function($event){if($event.ctrlKey || $event.shiftKey || $event.altKey || $event.metaKey)return null;onClick($event)}}})}`
304304
)
305305
})

0 commit comments

Comments
 (0)