dolittle
6 Apr 2007, 6:48 AM
Hi
I was looking at the Event functions and saw the usage of preventdefault which as far as I know goes with FF but didn`t see the IE equivalent returnvalue.
I didn`t see a bug or something but I can`t understand how could the returnvalue be neglected. I would expect something like:
if (evt.returnValue) {
evt.returnValue = false;
} else if (evt.preventDefault) {
evt.preventDefault( );
} else {
return false;
}
Is it something to do with the fact that the Ext event is not the usual e event?
If it does don`t you have to use returnvalue at least once in the Ext lib?
Thanks
I was looking at the Event functions and saw the usage of preventdefault which as far as I know goes with FF but didn`t see the IE equivalent returnvalue.
I didn`t see a bug or something but I can`t understand how could the returnvalue be neglected. I would expect something like:
if (evt.returnValue) {
evt.returnValue = false;
} else if (evt.preventDefault) {
evt.preventDefault( );
} else {
return false;
}
Is it something to do with the fact that the Ext event is not the usual e event?
If it does don`t you have to use returnvalue at least once in the Ext lib?
Thanks