Skip to content

.once modifier did'nt perform as expected if my event handler return null #11281

Open
@LKL2017

Description

@LKL2017

Version

2.6.11

Reproduction link

https://jsfiddle.net/q0v6m8dr/1/

Steps to reproduce

  1. bind a handler to an event which with a '.once' modifier
  2. set null for the hanlder's return value
  3. trigger the event, and trigger again

What is expected?

only the first trigger will invoke handler, under '.once' influence

What is actually happening?

subsequent trigger will also invoke handler beside the first one

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions