bebraw / colorjoe

Scaleable color picker with touch and AMD support (MIT)
http://bebraw.github.io/colorjoe/
MIT License
569 stars 68 forks source link

Fix removing all listeners #51

Closed sredni closed 4 years ago

sredni commented 4 years ago

This change fixes scenario:

  1. Setup colorjoe
  2. Add some listeners
  3. Call removeAllListeners
  4. Add other listeners - colorjoe will crash with error: Uncaught TypeError: Cannot read property 'push' of undefined
bebraw commented 4 years ago

Included in 4.1.1. Thanks a lot.