Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(719)

Side by Side Diff: sky/framework/inspector/dom-agent.sky

Issue 687263005: Use module.exports rather than this.exports (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/framework/inspector/console-agent.sky ('k') | sky/framework/inspector/indexeddb-agent.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « sky/framework/inspector/console-agent.sky ('k') | sky/framework/inspector/indexeddb-agent.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698