I cannot get this removeEventListener to function!
I'm wondering if it has something to do with needing to pass an item into the function that is called.
when I build the eventlistner i am using:
window.dummyElement = document.getElementById('dummyElement ')
dummyElement.addEventListener('click', submitNewAction.bind(event, item), true)
This is the removeEventListner Im using:
dummyElement.removeEventListener('click', submitNewAction.bind(event, item), true)
I have also tried:
dummyElement.removeEventListener('click', submitNewAction, true)
and
dummyElement.removeEventListener('click', submitNewAction(), true)
I'm Stumped as to why this isn't working... any ideas?