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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/components/ObjectPropertiesSection.js

Issue 1907263002: DevTools: Fix all outstanding JavaScript style issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove yoda disable. fix throw parens Created 4 years, 8 months 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 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 this.toggleOnClick = true; 206 this.toggleOnClick = true;
207 this.selectable = false; 207 this.selectable = false;
208 } 208 }
209 209
210 WebInspector.ObjectPropertyTreeElement.prototype = { 210 WebInspector.ObjectPropertyTreeElement.prototype = {
211 onpopulate: function() 211 onpopulate: function()
212 { 212 {
213 var propertyValue = /** @type {!WebInspector.RemoteObject} */ (this.prop erty.value); 213 var propertyValue = /** @type {!WebInspector.RemoteObject} */ (this.prop erty.value);
214 console.assert(propertyValue); 214 console.assert(propertyValue);
215 var skipProto = this.treeOutline ? this.treeOutline._skipProto : true; 215 var skipProto = this.treeOutline ? this.treeOutline._skipProto : true;
216 var targetValue = this.property.name !== '__proto__' ? propertyValue : t his.property.parentObject; 216 var targetValue = this.property.name !== "__proto__" ? propertyValue : t his.property.parentObject;
217 WebInspector.ObjectPropertyTreeElement._populate(this, propertyValue, sk ipProto, undefined, undefined, undefined, targetValue); 217 WebInspector.ObjectPropertyTreeElement._populate(this, propertyValue, sk ipProto, undefined, undefined, undefined, targetValue);
218 }, 218 },
219 219
220 /** 220 /**
221 * @override 221 * @override
222 * @return {boolean} 222 * @return {boolean}
223 */ 223 */
224 ondblclick: function(event) 224 ondblclick: function(event)
225 { 225 {
226 var editableElement = this.valueElement; 226 var editableElement = this.valueElement;
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 1330
1331 result = currentName + (result ? "." + result : ""); 1331 result = currentName + (result ? "." + result : "");
1332 current = current.parent; 1332 current = current.parent;
1333 } 1333 }
1334 var treeOutlineId = treeElement.treeOutline[WebInspector.ObjectPropertie sSectionExpandController._treeOutlineId]; 1334 var treeOutlineId = treeElement.treeOutline[WebInspector.ObjectPropertie sSectionExpandController._treeOutlineId];
1335 result = treeOutlineId + (result ? ":" + result : ""); 1335 result = treeOutlineId + (result ? ":" + result : "");
1336 treeElement[WebInspector.ObjectPropertiesSectionExpandController._cached PathSymbol] = result; 1336 treeElement[WebInspector.ObjectPropertiesSectionExpandController._cached PathSymbol] = result;
1337 return result; 1337 return result;
1338 } 1338 }
1339 } 1339 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698