mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 23:48:05 +03:00
is plain object
This commit is contained in:
parent
ef19e925e9
commit
4e1d13ceea
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user