From 4e1d13ceeadc63ab2bcc77948feb7cc04cf6d90c Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Thu, 25 Sep 2014 17:39:06 -0700 Subject: [PATCH] is plain object --- src/config.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?