Skip to content

add warning or trim for event handler with extra space in template #3893

@carrytao

Description

@carrytao

Vue.js version

2.0.1

Reproduction Link

http://jsbin.com/faremewici/2/edit?html,js,console,output

Steps to reproduce

As you can see , @click=" onClickHandler " has extra space.
then click the link in output

What is Expected?

the console should warn that event handler doesn't exist or execute onClickHandler directly

What is actually happening?

the console output nothing

Even in webpack dev environment, Vue doesn't show any warning.
I expect Vue can give a warning in this situation or just trim it to execute onClickHandler method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions