summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordtseng <dtseng@chromium.org>2015-07-13 16:06:53 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-13 23:08:38 +0000
commite5919e10c888a6dd650101c0cc56851b1c7dd02b (patch)
tree197fc9b932a1467b0b22c625dfe55f98cbe9cbf1
parent8e1be15bcb92d651afbf468bdb8e34e5dedb0e37 (diff)
downloadchromium_src-e5919e10c888a6dd650101c0cc56851b1c7dd02b.zip
chromium_src-e5919e10c888a6dd650101c0cc56851b1c7dd02b.tar.gz
chromium_src-e5919e10c888a6dd650101c0cc56851b1c7dd02b.tar.bz2
FixChromeVox-specific Closure compilation errors.
TBR=plundblad@chromium.org Review URL: https://codereview.chromium.org/1232053003 Cr-Commit-Position: refs/heads/master@{#338583}
-rw-r--r--chrome/browser/resources/chromeos/chromevox/braille/expanding_braille_translator.js4
-rw-r--r--chrome/browser/resources/chromeos/chromevox/walkers/abstract_node_walker.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/resources/chromeos/chromevox/braille/expanding_braille_translator.js b/chrome/browser/resources/chromeos/chromevox/braille/expanding_braille_translator.js
index 18baad7..45b5ffb 100644
--- a/chrome/browser/resources/chromeos/chromevox/braille/expanding_braille_translator.js
+++ b/chrome/browser/resources/chromeos/chromevox/braille/expanding_braille_translator.js
@@ -208,11 +208,11 @@ cvox.ExpandingBrailleTranslator.rangeForPosition_ = function(
}
// Find the last chunk of either whitespace or non-whitespace before and
// including pos.
- var start = str.substring(start, pos + 1).search(/(\s+|\S+)$/) + start;
+ start = str.substring(start, pos + 1).search(/(\s+|\S+)$/) + start;
// Find the characters to include after pos, starting at pos so that
// they are the same kind (either whitespace or not) as the
// characters starting at start.
- var end = pos + /^(\s+|\S+)/.exec(str.substring(pos, end))[0].length;
+ end = pos + /^(\s+|\S+)/.exec(str.substring(pos, end))[0].length;
return {start: start, end: end};
};
diff --git a/chrome/browser/resources/chromeos/chromevox/walkers/abstract_node_walker.js b/chrome/browser/resources/chromeos/chromevox/walkers/abstract_node_walker.js
index d3cae8a..19faec6 100644
--- a/chrome/browser/resources/chromeos/chromevox/walkers/abstract_node_walker.js
+++ b/chrome/browser/resources/chromeos/chromevox/walkers/abstract_node_walker.js
@@ -93,7 +93,7 @@ cvox.AbstractNodeWalker.prototype.privateSync_ = function(sel) {
var n = cvox.CursorSelection.fromNode(node);
if (!cvox.DomUtil.hasContent(node)) {
- var n = this.next(/** @type {!cvox.CursorSelection} */
+ n = this.next(/** @type {!cvox.CursorSelection} */
(cvox.CursorSelection.fromNode(node)).setReversed(r));
}
if (n) {