Skip to content

Add 'Unbind' function to dataToggle #2

@cpoisnel

Description

@cpoisnel

This plugin is used with Ajax requests and DOM is modified by returned results.
I have to add reset bind between buttons and containers but there is no such function.

$('[data-toggle]',$search).each(function resetDataToggle(i) {
                        // TODO Add unbind if needed
            var  $this = $(this);
            $this.dataToggle($this.data('toggle'),{});
        });

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