Index: chrome/browser/resources/chromeos/chromevox/common/node_state.js |
diff --git a/chrome/browser/resources/chromeos/chromevox/common/node_state.js b/chrome/browser/resources/chromeos/chromevox/common/node_state.js |
index d7f97fec38275f842a01bb593d1065177bf2aa47..ce082ac1a859e857f89674775fbfcab14b1bc651 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/common/node_state.js |
+++ b/chrome/browser/resources/chromeos/chromevox/common/node_state.js |
@@ -34,18 +34,20 @@ cvox.NodeState; |
*/ |
cvox.NodeStateUtil.expand = function(state) { |
try { |
- return state.map(function(s) { |
- if (s.length < 1) { |
- throw new Error('cvox.NodeState must have at least one entry'); |
- } |
- var args = s.slice(1).map(function(a) { |
- if (typeof a == 'number') { |
- return Msgs.getNumber(a); |
- } |
- return a; |
- }); |
- return Msgs.getMsg(/** @type {string} */ (s[0]), args); |
- }).join(' '); |
+ return state |
+ .map(function(s) { |
+ if (s.length < 1) { |
+ throw new Error('cvox.NodeState must have at least one entry'); |
+ } |
+ var args = s.slice(1).map(function(a) { |
+ if (typeof a == 'number') { |
+ return Msgs.getNumber(a); |
+ } |
+ return a; |
+ }); |
+ return Msgs.getMsg(/** @type {string} */ (s[0]), args); |
+ }) |
+ .join(' '); |
} catch (e) { |
throw new Error('error: ' + e + ' state: ' + state); |
} |