Stricter check for option existence

This commit is contained in:
Paris Kasidiaris
2016-09-21 19:09:55 +03:00
parent 4b459fe0fd
commit 53e8ac9b0c
+1 -1
View File
@@ -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];
}