fix: comparing typeof expression

This commit is contained in:
薛定谔的猫 2018-05-31 23:27:46 +08:00 committed by GitHub
parent 92003a3e52
commit 0fd614f732
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ function Section(parentSection, id, name) {
this.toHTML = function(options) {
var defaultOptions = {header: false, renderSubsections: true};
if (typeof options === undefined) {
if (typeof options === "undefined") {
options = defaultOptions;
} else {
options = $.extend(defaultOptions, options);