#1405 closed defect (fixed)
Get rid of code using the window.event object
Reported by: | Nicklas Nordborg | Owned by: | Nicklas Nordborg |
---|---|---|---|
Priority: | trivial | Milestone: | Reggie v4.40 |
Component: | net.sf.basedb.reggie | Keywords: | |
Cc: |
Description
I found an event handler that didn't define a parameter for the event object:
hisat.validateStep2 = function() { if (!clusterIsValid) event.preventDefault(); }
The code works because the event
object is defined as a global variable in window.event
that is holding the "current" event. This has been deprecated for some time:
https://developer.mozilla.org/en-US/docs/Web/API/Window/event
The fix is to define a parameter for the function:
hisat.validateStep2 = function(event) { if (!clusterIsValid) event.preventDefault(); }
The same mistake is probably present in other places.
Note:
See TracTickets
for help on using tickets.
In 6824: