这是indexloc提供的服务,不要输入任何密码
Skip to content

[question] When to bind event handlers? #7

@ghost

Description

Hi, thank you for this slider. I have a question though. I wonder when it is the best moment during a slide to bind eventhandlers to the html (for example click events). Do I do this when the page finished sliding (callback from slidePage fn)? Also is it best practise to unbind these eventhandlers when leaving a page and rebind when they are needed again?

thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions