I know, that's what my son tells me all the time, 30 years programming and still making basic errors....
Anyway thanks and I will update the code with statics, I have the class in place, I was just to lazy to use them Sent from my iPad > On 28 Jun 2015, at 21:16, Peter Ginneberge <[email protected]> wrote: > > > >> On 28/06/2015 20:24, Scott Matheson wrote: >> Thomas >> i tried popup.addEventListener("OKTODELETE", deleteThisRecords) >> >> all seems to be working, must have been a type-o >> > > That's why you use static constants rather than string literals. > > popup.addEventListener(CustomEvent.EVENT_TYPE, deleteThisRecords); > > regards, > Peter > Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.
