reporting_base.js 541 B

12345678910111213141516171819202122
  1. function reporting_base (instance, widget) {
  2. "use strict";
  3. widget.Base = instance.Widget.extend({
  4. position: 0,
  5. init: function (parent, position) {
  6. this._super(parent);
  7. this.position = position || this.position;
  8. },
  9. start: function () {
  10. // console.log('Reporting Locoo');
  11. },
  12. getPosition: function () {
  13. return this.position;
  14. },
  15. setPosition: function (position) {
  16. this.position = position;
  17. }
  18. });
  19. }