Jump to content
Search Community

Does SplitText.revert() frees the object itself from memory?

violacase test
Moderator Tag

Go to solution Solved by OSUblake,

Recommended Posts

9 hours ago, violacase said:

If not how do I free the object itself?

 

You have to remove any references to it. Not a gsap thing. That's just how programming works.

 

let split = new SplitText(yourElement);

// later
split.revert();
split = null;

 

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...