ember-legacy-class-transform
Version:
The default blueprint for ember-cli addons.
12 lines • 479 B
JavaScript
const COMPONENT_DEFINITION_BRAND = 'COMPONENT DEFINITION [id=e59c754e-61eb-4392-8c4a-2c0ac72bfcd4]';
export function isComponentDefinition(obj) {
return typeof obj === 'object' && obj !== null && obj[COMPONENT_DEFINITION_BRAND];
}
export class ComponentDefinition {
constructor(name, manager, ComponentClass) {
this[COMPONENT_DEFINITION_BRAND] = true;
this.name = name;
this.manager = manager;
this.ComponentClass = ComponentClass;
}
}