Target style null when cursor leave the screen on Firefox
I have some issue with Firefox when my cursor leave the current window.
In the sample of the code I release the old target style, which works fine on IE and Chrome, but not on Firefox if my cursor leave the current window the "instance.Target.style" is undefined.
Have I done something wrong, or Firefox choose to have a different behaviour ?
// Get the target element
var target = domEvent.target;
// Release the old target
if (instance.Target && instance.Target != target)
instance.Target.style.cursor = "";
// Set the new target
instance.Target = domEvent.target;
// Do other thing