fix #xxx Fixing a memory leak in SynEvents.js