From 3d5336b262046261b14b109108dc17091b81428b Mon Sep 17 00:00:00 2001 From: Lewis Hemens Date: Sun, 27 Apr 2014 13:27:00 +0100 Subject: [PATCH] Changed default dash char to pure ascii --- js-compiled.js | 6 +++--- js-lib/common.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js-compiled.js b/js-compiled.js index 3277d1b..072a459 100644 --- a/js-compiled.js +++ b/js-compiled.js @@ -4,7 +4,7 @@ try { } catch (aa) { window.O = window.O || {}; } -var g = ["+", "\u2012", "\u2013"], m = [">", "<", "^", "v"], ba = g.concat(m), n = "ontouchstart" in window || "onmsgesturechange" in window; +var g = ["+", "\u2012", "\u2013", "-"], m = [">", "<", "^", "v"], ba = g.concat(m), n = "ontouchstart" in window || "onmsgesturechange" in window; function p(a, b) { this.x = a; this.y = b; @@ -461,13 +461,13 @@ function ja(a, b) { } var d = a.getContext(b); if (d.left && d.right && !d.l && !d.j) { - return "\u2012"; + return "-"; } if (!d.left && !d.right && d.l && d.j) { return "|"; } if (4 == E(d)) { - return "\u2012"; + return "-"; } if ("+" == c && 3 == E(d)) { return "+"; diff --git a/js-lib/common.js b/js-lib/common.js index 532059b..5b86509 100644 --- a/js-lib/common.js +++ b/js-lib/common.js @@ -20,13 +20,13 @@ try { /** @const */ var SPECIAL_ARROW_UP = '^'; /** @const */ var SPECIAL_ARROW_RIGHT = '>'; /** @const */ var SPECIAL_ARROW_DOWN = 'v'; -/** @const */ var SPECIAL_VALUES = ['+', '\u2012', '\u2013']; +/** @const */ var SPECIAL_VALUES = ['+', '\u2012', '\u2013', '-']; /** @const */ var ALT_SPECIAL_VALUES = ['>', '<', '^', 'v']; /** @const */ var ALL_SPECIAL_VALUES = SPECIAL_VALUES.concat(ALT_SPECIAL_VALUES); /** @const */ var MAX_UNDO = 50; -/** @const */ var SPECIAL_LINE_H = '\u2012'; +/** @const */ var SPECIAL_LINE_H = '-'; /** @const */ var SPECIAL_LINE_V = '|'; /** @const */ var ERASE_CHAR = '\u2009';