src/spell-check-handler.js
function fromEventCapture(element, name) {
  return Observable.create((subj) => {
    const handler = function (...args) {
      if (args.length > 1) {
        subj.next(args);
      } else {
        subj.next(args[0] || true);
      }
    };

    element.addEventListener(name, handler, true);
    return new Subscription(() => element.removeEventListener(name, handler, true));
  });
}
function fromEventCapture(element, name) {
  return Observable.create((subj) => {
    const handler = function (...args) {
      if (args.length > 1) {
        subj.next(args);
      } else {
        subj.next(args[0] || true);
      }
    };

    element.addEventListener(name, handler, true);
    return new Subscription(() => element.removeEventListener(name, handler, true));
  });
}
function fromEventCapture ( element , name ) { return Observable . create ( ( subj ) => { const handler = function ( ... args ) { if ( args . length > 1 ) { subj . next ( args ) ; } else { subj . next ( args [ 0 ] || true ) ; } } ; element . addEventListener ( name , handler , true ) ; return new Subscription ( ( ) => element . removeEventListener ( name , handler , true ) ) ; } ) ; }
This method mimics Observable.fromEvent, but with capture semantics.
This method mimics Observable . fromEvent but with capture semantics .