Skip to content

Calling split() more than once results in 'undefined' text #47

@danielkorte

Description

@danielkorte

Using the responsive text example code and resizing the window multiple times and you’ll see the issue:
https://codepen.io/danielkorte/pen/OJEVRoN

The reason for the issue is split() calls revert() which calls SplitType.revert() which deletes the 'html' cached data so the second run of split() will again call revert() but 'html' will be undefined at that point.

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