From e33409fb9a3eb8f0bc6dd1d98638b57b449ecf46 Mon Sep 17 00:00:00 2001 From: saneyuki_s Date: Sun, 6 Jan 2013 12:12:35 +0900 Subject: [PATCH] Freeze TreeStyleTabConstants. We treat this as constants. --- modules/constants.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/constants.js b/modules/constants.js index f112f18e..ab261304 100644 --- a/modules/constants.js +++ b/modules/constants.js @@ -35,7 +35,7 @@ const EXPORTED_SYMBOLS = ['TreeStyleTabConstants']; -var TreeStyleTabConstants = { +const TreeStyleTabConstants = Object.freeze({ /* attributes */ kID : 'treestyletab-id', kCHILDREN : 'treestyletab-children', @@ -202,4 +202,4 @@ var TreeStyleTabConstants = { DEFAULT_SHRUNKEN_WIDTH_RATIO : 0.67, MIN_TABBAR_WIDTH : 24, MIN_TABBAR_HEIGHT : 24 -}; +});