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

Unified Diff: third_party/WebKit/Source/devtools/front_end/common/Object.js

Issue 2515763003: DevTools: use shorthand syntax in interface definitions. (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/common/Object.js
diff --git a/third_party/WebKit/Source/devtools/front_end/common/Object.js b/third_party/WebKit/Source/devtools/front_end/common/Object.js
index 3a6a890b7c852ec41649530ac4789fc36e02f322..6a389f7d9fc64b8b9f75b83794d29cc0f448ec25 100644
--- a/third_party/WebKit/Source/devtools/front_end/common/Object.js
+++ b/third_party/WebKit/Source/devtools/front_end/common/Object.js
@@ -164,29 +164,29 @@ Common.EventTarget.prototype = {
* @param {!Object=} thisObject
* @return {!Common.EventTarget.EventDescriptor}
*/
- addEventListener: function(eventType, listener, thisObject) {},
+ addEventListener(eventType, listener, thisObject) {},
/**
* @param {string|symbol} eventType
* @param {function(!Common.Event)} listener
* @param {!Object=} thisObject
*/
- removeEventListener: function(eventType, listener, thisObject) {},
+ removeEventListener(eventType, listener, thisObject) {},
- removeAllListeners: function() {},
+ removeAllListeners() {},
/**
* @param {string|symbol} eventType
* @return {boolean}
*/
- hasEventListeners: function(eventType) {},
+ hasEventListeners(eventType) {},
/**
* @param {string|symbol} eventType
* @param {*=} eventData
* @return {boolean}
*/
- dispatchEventToListeners: function(eventType, eventData) {},
+ dispatchEventToListeners(eventType, eventData) {},
};
/**

Powered by Google App Engine
This is Rietveld 408576698