diff --git a/src/config.coffee b/src/config.coffee index 1f23d7a5d..8920b7ed7 100644 --- a/src/config.coffee +++ b/src/config.coffee @@ -604,7 +604,7 @@ class Config @emitter.emit 'did-change' setSchema: (keyPath, schema) -> - unless typeof schema is "object" + unless isPlainObject(schema) throw new Error("Error loading schema for #{keyPath}: schemas can only be objects!") unless typeof schema.type?