mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Merge pull request #16957 from atom/la-fix-config-docs
Fix documentation for the Config class
This commit is contained in:
@@ -8,6 +8,8 @@ const Color = require('./color')
|
||||
const ScopedPropertyStore = require('scoped-property-store')
|
||||
const ScopeDescriptor = require('./scope-descriptor')
|
||||
|
||||
const schemaEnforcers = {}
|
||||
|
||||
// Essential: Used to access all of Atom's configuration details.
|
||||
//
|
||||
// An instance of this class is always available as the `atom.config` global.
|
||||
@@ -359,8 +361,6 @@ const ScopeDescriptor = require('./scope-descriptor')
|
||||
//
|
||||
// * Don't depend on (or write to) configuration keys outside of your keypath.
|
||||
//
|
||||
const schemaEnforcers = {}
|
||||
|
||||
class Config {
|
||||
static addSchemaEnforcer (typeName, enforcerFunction) {
|
||||
if (schemaEnforcers[typeName] == null) { schemaEnforcers[typeName] = [] }
|
||||
|
||||
Reference in New Issue
Block a user