Skip to content

Implicit teardown #62

@pisi

Description

@pisi

Right now, .reel() called on an already initialized instance are dropped. This behavior introduces an arbitrary need to .trigger() "teardown" event first. Like so:

    .click( function(){
        $("#my_image").trigger("teardown").reel();
    }

This calls for a change. When .reel() is called on a node, instead of dropping the call, it performs an implicit "teardown" trigger prior to actually starting.

The above would then be allowed to ommit the .trigger() and simply call .reel() without any obstructions:

    .click( function(){
        $("#my_image").reel();
    }

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions