Open this page in the API Guide

ContextMenuCommand.unbindAll Method

unsubscribe all events.