Index: client/html/generated/html/frog/Node.dart |
diff --git a/client/html/generated/html/frog/Node.dart b/client/html/generated/html/frog/Node.dart |
index e7d3afbcfe0ef13b7f2cf11a543b0e680908ee3e..77ae79435b9e40a06eaca78910dd1af1745d5194 100644 |
--- a/client/html/generated/html/frog/Node.dart |
+++ b/client/html/generated/html/frog/Node.dart |
@@ -22,14 +22,16 @@ class _NodeImpl extends _EventTargetImpl implements Node native "*Node" { |
// TODO(jacobr): should we throw an exception if parent is already null? |
_NodeImpl remove() { |
if (this.parent != null) { |
- this.parent._removeChild(this); |
+ final _NodeImpl parent = this.parent; |
+ parent._removeChild(this); |
} |
return this; |
} |
_NodeImpl replaceWith(Node otherNode) { |
try { |
- this.parent._replaceChild(otherNode, this); |
+ final _NodeImpl parent = this.parent; |
+ parent._replaceChild(otherNode, this); |
} catch(var e) { |
}; |