catberry
Version:
Catberry is an isomorphic framework for building universal front-end apps using components, Flux architecture and progressive rendering.
38 lines (29 loc) • 711 B
JavaScript
;
const ServiceLocator = require('catberry-locator');
/**
* Implements the basic Catberry class for both server and browser environments.
*/
class CatberryBase {
/**
* Creates a new instance of the basic Catberry application module.
*/
constructor() {
/**
* Current service locator.
* @type {ServiceLocator}
*/
this.locator = new ServiceLocator();
/**
* Current version of Catberry.
*/
this.version = '9.0.0';
/**
* Current object with events.
* @type {ModuleApiProvider}
*/
this.events = null;
this.locator.registerInstance('serviceLocator', this.locator);
this.locator.registerInstance('catberry', this);
}
}
module.exports = CatberryBase;