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

Unified Diff: ui/webui/resources/js/cr/event_target.js

Issue 2603443002: Clang format JS: Disallow single line functions, conditionals, loops, and switch statements (Closed)
Patch Set: more options 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 side-by-side diff with in-line comments
Download patch
Index: ui/webui/resources/js/cr/event_target.js
diff --git a/ui/webui/resources/js/cr/event_target.js b/ui/webui/resources/js/cr/event_target.js
index c9e091409769bc47d68cc1ccdb7c8a12c50110e6..bc768dbb3211d9414ec57fd60deef08e3d0154a2 100644
--- a/ui/webui/resources/js/cr/event_target.js
+++ b/ui/webui/resources/js/cr/event_target.js
@@ -20,7 +20,8 @@ cr.define('cr', function() {
* @constructor
* @implements {EventTarget}
*/
- function EventTarget() {}
+ function EventTarget() {
+ }
EventTarget.prototype = {
/**
@@ -76,7 +77,9 @@ cr.define('cr', function() {
// Since we are using DOM Event objects we need to override some of the
// properties and methods so that we can emulate this correctly.
var self = this;
- event.__defineGetter__('target', function() { return self; });
+ event.__defineGetter__('target', function() {
+ return self;
+ });
var type = event.type;
var prevented = 0;

Powered by Google App Engine
This is Rietveld 408576698