How to use the @devexpress/dx-core.EventEmitter function in @devexpress/dx-core

To help you get started, we’ve selected a few @devexpress/dx-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github deranjer / goTorrent / goTorrentWebUI / node_modules / @devexpress / dx-react-core / dist / dx-react-core.es.js View on Github external
var getSharedEventEmitter = function getSharedEventEmitter() {
  if (!eventEmitter) {
    eventEmitter = new EventEmitter();

    ['mousemove', 'mouseup', 'touchmove', 'touchend', 'touchcancel'].forEach(function (name) {
      return window.addEventListener(name, function (e) {
        return eventEmitter.emit([name, e]);
      }, { passive: false });
    });
  }
  return eventEmitter;
};
github deranjer / goTorrent / goTorrentWebUI / node_modules / @devexpress / dx-react-core / dist / dx-react-core.es.js View on Github external
function DragDropProviderCore() {
    classCallCheck(this, DragDropProviderCore);

    this.payload = null;
    this.dragEmitter = new EventEmitter();
  }

@devexpress/dx-core

Core library for DevExtreme Reactive Components

SEE LICENSE IN README.md
Latest version published 2 months ago

Package Health Score

86 / 100
Full package analysis