ui.scheduler.publisher_mixin.js 695 B

123456789101112131415161718192021222324
  1. /**
  2. * DevExtreme (ui/scheduler/ui.scheduler.publisher_mixin.js)
  3. * Version: 19.1.16
  4. * Build date: Tue Oct 18 2022
  5. *
  6. * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
  7. * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
  8. */
  9. "use strict";
  10. var publisherMixin = {
  11. notifyObserver: function(subject, args) {
  12. var observer = this.option("observer");
  13. if (observer) {
  14. observer.fire(subject, args)
  15. }
  16. },
  17. invoke: function() {
  18. var observer = this.option("observer");
  19. if (observer) {
  20. return observer.fire.apply(observer, arguments)
  21. }
  22. }
  23. };
  24. module.exports = publisherMixin;