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

Side by Side Diff: tracing/tracing/base/event.html

Issue 2526613002: Return short-hand object literals to exportTo. (Closed)
Patch Set: . Created 4 years 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2014 The Chromium Authors. All rights reserved. 3 Copyright (c) 2014 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/base/event_target.html"> 8 <link rel="import" href="/tracing/base/event_target.html">
9 9
10 <script> 10 <script>
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 var e = new tr.b.Event(type, opt_bubbles, opt_cancelable); 87 var e = new tr.b.Event(type, opt_bubbles, opt_cancelable);
88 if (opt_fields) { 88 if (opt_fields) {
89 tr.b.iterItems(opt_fields, function(name, value) { 89 tr.b.iterItems(opt_fields, function(name, value) {
90 e[name] = value; 90 e[name] = value;
91 }); 91 });
92 } 92 }
93 return target.dispatchEvent(e); 93 return target.dispatchEvent(e);
94 } 94 }
95 95
96 return { 96 return {
97 Event: Event, 97 Event,
98 dispatchSimpleEvent: dispatchSimpleEvent 98 dispatchSimpleEvent,
99 }; 99 };
100 }); 100 });
101 </script> 101 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698