Code cleanup.
This commit is contained in:
parent
e7ca5cbbaf
commit
b1a90e03ba
1 changed files with 9 additions and 9 deletions
|
@ -14,10 +14,10 @@ class App.Config
|
|||
_instance ?= new _configSingleton
|
||||
_instance.set(key, value, group)
|
||||
|
||||
@_all: ->
|
||||
@all: ->
|
||||
if _instance == undefined
|
||||
_instance ?= new _configSingleton
|
||||
_instance._all()
|
||||
_instance.all()
|
||||
|
||||
class _configSingleton
|
||||
constructor: ->
|
||||
|
@ -38,5 +38,5 @@ class _configSingleton
|
|||
else
|
||||
@config[key] = value
|
||||
|
||||
_all: ->
|
||||
all: ->
|
||||
@config
|
||||
|
|
Loading…
Reference in a new issue