Index: Source/WebCore/inspector/front-end/utilities.js |
=================================================================== |
--- Source/WebCore/inspector/front-end/utilities.js (revision 113151) |
+++ Source/WebCore/inspector/front-end/utilities.js (working copy) |
@@ -376,10 +376,14 @@ |
} |
}); |
-Event.prototype.consume = function() |
+/** |
+ * @param {boolean=} preventDefault |
+ */ |
+Event.prototype.consume = function(preventDefault) |
{ |
this.stopImmediatePropagation(); |
- this.preventDefault(); |
+ if (preventDefault) |
+ this.preventDefault(); |
this.handled = true; |
} |