diff options
| author | Alon Levy <alon@pobox.com> | 2014-11-29 22:04:09 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-11-29 22:30:22 +0200 |
| commit | d27d697c1b914af3fbf76f12c31026cc56f37570 (patch) | |
| tree | 2cdc7dab7b6af3b9ec7e9acc08c79325f5cf2502 | |
| parent | f4641e13cd4e90d9e43d83ace1079d58e3822b6b (diff) | |
history: don't throw on bad input (it's just history)
| -rw-r--r-- | src/history.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/history.js b/src/history.js index 234a1c8a..3bc750d2 100644 --- a/src/history.js +++ b/src/history.js @@ -115,7 +115,8 @@ History.prototype.record_keystrokes = function(obj) if (where === undefined || keys === undefined || keys.length === undefined || keys.length <= 0) { - throw "Invalid arguments"; + console.log("invalid arguments"); + return; } keys = keys.filter(function(k) { return k !== undefined; }); if (keys.length == 0) { |
