Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

data-properties.js 283B

123456789101112
  1. 'use strict';
  2. module.exports = function dataProperties(klass, properties) {
  3. properties.forEach(p => {
  4. Object.defineProperty(klass.prototype, p, {
  5. enumerable: true,
  6. get() {
  7. return this.data[p];
  8. }
  9. });
  10. });
  11. };