| OLD | NEW |
| 1 <script> | 1 <script> |
| 2 function DOMAgent(delegate) { | 2 function DOMAgent(delegate) { |
| 3 this.enabled = false; | 3 this.enabled = false; |
| 4 this.delegate_ = delegate; | 4 this.delegate_ = delegate; |
| 5 this.nextNodeId_ = 1; | 5 this.nextNodeId_ = 1; |
| 6 this.nodeToId_ = new Map(); | 6 this.nodeToId_ = new Map(); |
| 7 this.idToNode_ = new Map(); | 7 this.idToNode_ = new Map(); |
| 8 } | 8 } |
| 9 | 9 |
| 10 DOMAgent.prototype.getIdForNode_ = function(node) { | 10 DOMAgent.prototype.getIdForNode_ = function(node) { |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 this.delegate_.sendMessage("DOM.childNodeInserted", { | 154 this.delegate_.sendMessage("DOM.childNodeInserted", { |
| 155 parentNodeId: nodeId, | 155 parentNodeId: nodeId, |
| 156 previousNodeId: previousNodeId, | 156 previousNodeId: previousNodeId, |
| 157 node: this.serializeNode_(node), | 157 node: this.serializeNode_(node), |
| 158 }); | 158 }); |
| 159 }.bind(this)); | 159 }.bind(this)); |
| 160 } | 160 } |
| 161 } | 161 } |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 this.exports = DOMAgent; | 164 module.exports = DOMAgent; |
| 165 </script> | 165 </script> |
| OLD | NEW |