- event.preventDefault = function() {
- this.returnValue = false;
- };
- event.stopPropagation = function() {
- this.cancelBubble = true;
- };
+ if (!event.preventDefault)
+ event.preventDefault = function() {
+ this.returnValue = false;
+ };
+
+ if (!event.stopPropagation)
+ event.stopPropagation = function() {
+ this.cancelBubble = true;
+ };
+