Added a clearData function to null out the data and trigger an 'undata' event.