mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Merge branch 'master' into fb-pw-simple-project-config
This commit is contained in:
@@ -1106,7 +1106,7 @@ class Config {
|
||||
deepClone (object) {
|
||||
if (object instanceof Color) {
|
||||
return object.clone()
|
||||
} else if (_.isArray(object)) {
|
||||
} else if (Array.isArray(object)) {
|
||||
return object.map(value => this.deepClone(value))
|
||||
} else if (isPlainObject(object)) {
|
||||
return _.mapObject(object, (key, value) => [key, this.deepClone(value)])
|
||||
@@ -1467,7 +1467,7 @@ Config.addSchemaEnforcers({
|
||||
}
|
||||
})
|
||||
|
||||
let isPlainObject = value => _.isObject(value) && !_.isArray(value) && !_.isFunction(value) && !_.isString(value) && !(value instanceof Color)
|
||||
let isPlainObject = value => _.isObject(value) && !Array.isArray(value) && !_.isFunction(value) && !_.isString(value) && !(value instanceof Color)
|
||||
|
||||
let sortObject = value => {
|
||||
if (!isPlainObject(value)) { return value }
|
||||
|
||||
Reference in New Issue
Block a user