3f03ff9667
add Base class add set and get properties utils
16 lines
312 B
JavaScript
16 lines
312 B
JavaScript
import {EventEmitter} from 'events';
|
|
import * as utils from '../utils';
|
|
|
|
export default class Base extends EventEmitter {
|
|
constructor() {
|
|
super();
|
|
}
|
|
|
|
setProperties(object) {
|
|
return utils.setProperties(this, object);
|
|
}
|
|
|
|
getProperties(object) {
|
|
return utils.getProperties(this, object);
|
|
}
|
|
} |