| Index: tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate
|
| diff --git a/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate b/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate
|
| index 9792bf15e2afb5690a4e710af609ed93625d90c3..d4e304ded5bbcb66415aa1185e43926a8164da0f 100644
|
| --- a/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate
|
| +++ b/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate
|
| @@ -64,13 +64,12 @@ $!MEMBERS
|
| return new Point(x, y);
|
| } else {
|
| // Firefox does not support offsetX.
|
| - var target = this.target;
|
| - if (!(target is Element)) {
|
| + if (!(this.target is Element)) {
|
| throw new UnsupportedError(
|
| 'offsetX is only supported on elements');
|
| }
|
| - return (this.client -
|
| - this.target.getBoundingClientRect().topLeft).toInt();
|
| + Element target = this.target;
|
| + return (this.client - target.getBoundingClientRect().topLeft).toInt();
|
| }
|
| }
|
|
|
|
|