Index: lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate |
diff --git a/lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate b/lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate |
index 5d0485c56dc228e32d5812baebace6d97435748d..62aaa4e72419ce421b5c2c7c102736b1f2caa14b 100644 |
--- a/lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate |
+++ b/lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate |
@@ -12,7 +12,7 @@ $!MEMBERS |
// Firefox does not support offsetX. |
var target = this.target; |
if (!(target is Element)) { |
- throw const UnsupportedOperationException( |
+ throw new UnsupportedError( |
'offsetX is only supported on elements'); |
} |
return this.clientX - this.target.getBoundingClientRect().left; |
@@ -26,7 +26,7 @@ $!MEMBERS |
// Firefox does not support offsetY. |
var target = this.target; |
if (!(target is Element)) { |
- throw const UnsupportedOperationException( |
+ throw new UnsupportedError( |
'offsetY is only supported on elements'); |
} |
return this.clientY - this.target.getBoundingClientRect().top; |