We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
option
enable
disable
app.option = function option (key, value) { if (!arguments.length) { app.emit('option', app.options) // option:getAll app.options return app.options } if (arguments.length === 1 && typeof key === 'string') { app.emit('option', app.options, key) // option:get key return get(app.options, key) } if (isObject(key)) { app.emit('option', app.options, key) // option:setAll key app.options = merge({}, app.options, key) } else { app.emit('option', app.options, key, value) // option:set key, value set(app.options, key, value) } return app.options }
and probably option:getAll, option:get, option:setAll and option:set?
option:getAll
option:get
option:setAll
option:set
The text was updated successfully, but these errors were encountered:
1eb4084
No branches or pull requests
and probably
option:getAll
,option:get
,option:setAll
andoption:set
?The text was updated successfully, but these errors were encountered: