Javascript SetTimeout and jQuery Scope Problems

Опубликовано: 26 Октябрь 2024
на канале: optikalefx
2,941
16

Using the mysterious 3rd parameter of setTimeout we cant send a reference to the parent object to be used inside.

When inside of a jQuery function that overloads the word 'this' we can store a reference outside of that function in order to still use the object