Find All Addeventlisteners Without Weakreference

05 June 2009

Today I made a regular expression to find all addEventListeners that don’t set the useWeakReference to false, this is important because it can save you a lot of references to objects that should have been deleted.

For more information on this topic see the post Grant Skinner wrote about this: gskinner.com

The regular expression:

addEventListener[(a-zA-Z_]*.[a-zA-Z_]*,*[a-zA-Z_]*.;

Picture 110

Jankees van Woezik profile picture

Hello, I'm Jankees van Woezik

Like this post? Follow me at @jankeesvw on Twitter