FaC: Das alte Flag von Terminen, die in die Zeiterfassung übernommen worden sind, wird ebenfalls berücksichtigt.
13 lines
440 B
JavaScript
13 lines
440 B
JavaScript
module.exports = definition => assign(
|
|
definition.class ? definition.class
|
|
: !definition.prototype ? classed(definition)
|
|
: definition.prototype.render ? definition
|
|
: definition.prototype.connected ? definition
|
|
: classed(definition)
|
|
)
|
|
|
|
const { assign } = Object
|
|
|
|
const classed = render => render.class = render.class || class {
|
|
render(){ render.apply(this, arguments) }
|
|
} |