when unbinding from BeforeUnload event on editor manager, make sure to specify event name