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

Side by Side Diff: chrome/browser/resources/bookmark_manager/js/bmm/bookmark_tree.js

Issue 1126453002: Adding strict mode for bookmark_manager file for better error checking. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing nit. Created 5 years, 7 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 cr.define('bmm', function() { 6 cr.define('bmm', function() {
7 'use strict';
8
7 /** 9 /**
8 * The id of the bookmark root. 10 * The id of the bookmark root.
9 * @type {string} 11 * @type {string}
10 * @const 12 * @const
11 */ 13 */
12 var ROOT_ID = '0'; 14 var ROOT_ID = '0';
13 15
14 /** @const */ var Tree = cr.ui.Tree; 16 /** @const */ var Tree = cr.ui.Tree;
15 /** @const */ var TreeItem = cr.ui.TreeItem; 17 /** @const */ var TreeItem = cr.ui.TreeItem;
16 /** @const */ var localStorage = window.localStorage; 18 /** @const */ var localStorage = window.localStorage;
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 }; 314 };
313 315
314 return { 316 return {
315 BookmarkTree: BookmarkTree, 317 BookmarkTree: BookmarkTree,
316 BookmarkTreeItem: BookmarkTreeItem, 318 BookmarkTreeItem: BookmarkTreeItem,
317 treeLookup: treeLookup, 319 treeLookup: treeLookup,
318 tree: /** @type {Element} */(null), // Set when decorated. 320 tree: /** @type {Element} */(null), // Set when decorated.
319 ROOT_ID: ROOT_ID 321 ROOT_ID: ROOT_ID
320 }; 322 };
321 }); 323 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698