Takeaways (to be updated):
- Always bind event handlers (because you will lose context of ‘this’).
- If using pseudoclassical pattern, make sure it’s being used in all your files. (e.g. calling new dancerMakerFunction() in init.js).
- Use jQuery plugins and libraries for special effects.
- Debugging:
- Use debugger; inside function to be tested
- Trace the call stack
- Hover over variables or code to see what they’re referencing
- Remember to stop the debugger to execute the rest of the app