stimulus_reflex
Version:
Build reactive applications with the Rails tooling you already know and love.
20 lines (18 loc) • 335 B
JavaScript
let deprecationWarnings = true
export default {
get enabled () {
return deprecationWarnings
},
get disabled () {
return !deprecationWarnings
},
get value () {
return deprecationWarnings
},
set (value) {
deprecationWarnings = !!value
},
set deprecate (value) {
deprecationWarnings = !!value
}
}