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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerCacheModel.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * Invariant: This model can only be constructed on a ServiceWorker target. 6 * Invariant: This model can only be constructed on a ServiceWorker target.
7 * @constructor 7 * @constructor
8 * @extends {WebInspector.SDKModel} 8 * @extends {WebInspector.SDKModel}
9 */ 9 */
10 WebInspector.ServiceWorkerCacheModel = function(target) 10 WebInspector.ServiceWorkerCacheModel = function(target)
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 /** 314 /**
315 * @param {!WebInspector.Target} target 315 * @param {!WebInspector.Target} target
316 * @return {!WebInspector.ServiceWorkerCacheModel} 316 * @return {!WebInspector.ServiceWorkerCacheModel}
317 */ 317 */
318 WebInspector.ServiceWorkerCacheModel.fromTarget = function(target) 318 WebInspector.ServiceWorkerCacheModel.fromTarget = function(target)
319 { 319 {
320 if (!target[WebInspector.ServiceWorkerCacheModel._symbol]) 320 if (!target[WebInspector.ServiceWorkerCacheModel._symbol])
321 target[WebInspector.ServiceWorkerCacheModel._symbol] = new WebInspector. ServiceWorkerCacheModel(target); 321 target[WebInspector.ServiceWorkerCacheModel._symbol] = new WebInspector. ServiceWorkerCacheModel(target);
322 322
323 return target[WebInspector.ServiceWorkerCacheModel._symbol]; 323 return target[WebInspector.ServiceWorkerCacheModel._symbol];
324 } 324 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698