From 53e8ac9b0ce65b7a060bb2f9f6744804e92721a7 Mon Sep 17 00:00:00 2001 From: Paris Kasidiaris Date: Wed, 21 Sep 2016 19:09:55 +0300 Subject: [PATCH] Stricter check for option existence --- src/xterm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xterm.js b/src/xterm.js index f785ab1a..bc0de043 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -366,7 +366,7 @@ Terminal.prototype.getOption = function(key, value) { throw new Error('No option with key "' + key + '"'); } - if (typeof this.options[key] != 'undefined') { + if (typeof this.options[key] !== 'undefined') { return this.options[key]; }