Jump to content
GreenSock

Tom

Getting `Invalid property` errors using forEach

Moderator Tag
Go to solution Solved by Tom,

Recommended Posts

Strangely I'm seeing the errors only on local development but not on codepen. I tried adding the CSS plugin but errors still persist. Any idea?

 

The solution was to use children instead of nodeChildren. Oops.

 

See the Pen abZjmVw by rgbjoy (@rgbjoy) on CodePen

Link to comment
Share on other sites

  • Solution

The solution was to use children instead of childNodes. Oops. Sips more coffee.

  • Like 2
Link to comment
Share on other sites

  • Tom changed the title to Getting `Invalid property` errors using forEach

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.
×