How to use the fbjs/lib/EventListener.capture function in fbjs

To help you get started, we’ve selected a few fbjs 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 raphamorim / react-tv / packages / react-tv / renderer / events / ReactTVEventListener.js View on Github external
export function trapCapturedEvent(
  topLevelType,
  handlerBaseName,
  element,
  handler
) {
  if (!element) {
    return null;
  }
  return EventListener.capture(
    element,
    handlerBaseName,
    handler
    // dispatchEvent.bind(null, topLevelType)
  );
}
github ServiceStackApps / typescript-redux / src / TypeScriptRedux / jspm_packages / npm / react@0.14.7 / lib / ReactEventListener.js View on Github external
trapCapturedEvent: function(topLevelType, handlerBaseName, handle) {
      var element = handle;
      if (!element) {
        return null;
      }
      return EventListener.capture(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType));
    },
    monitorScrollValue: function(refresh) {
github joshuaslate / saas-tutorial / node_modules / react / lib / ReactEventListener.js View on Github external
trapCapturedEvent: function (topLevelType, handlerBaseName, handle) {
    var element = handle;
    if (!element) {
      return null;
    }
    return EventListener.capture(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType));
  },
github mendersoftware / gui / node_modules / react / lib / ReactEventListener.js View on Github external
trapCapturedEvent: function (topLevelType, handlerBaseName, handle) {
    var element = handle;
    if (!element) {
      return null;
    }
    return EventListener.capture(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType));
  },
github facebook / react / packages / react-dom / src / events / ReactDOMEventListener.js View on Github external
trapCapturedEvent: function(topLevelType, handlerBaseName, element) {
    if (!element) {
      return null;
    }
    return EventListener.capture(
      element,
      handlerBaseName,
      ReactDOMEventListener.dispatchEvent.bind(null, topLevelType),
    );
  },
github mendersoftware / gui / node_modules / react-dom / lib / ReactEventListener.js View on Github external
trapCapturedEvent: function (topLevelType, handlerBaseName, element) {
    if (!element) {
      return null;
    }
    return EventListener.capture(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType));
  },
github stolksdorf / vitreum / node_modules / react / lib / ReactEventListener.js View on Github external
trapCapturedEvent: function (topLevelType, handlerBaseName, handle) {
    var element = handle;
    if (!element) {
      return null;
    }
    return EventListener.capture(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType));
  },
github aemoe / webpack-react-framework / node_modules / react / lib / ReactEventListener.js View on Github external
trapCapturedEvent: function (topLevelType, handlerBaseName, handle) {
    var element = handle;
    if (!element) {
      return null;
    }
    return EventListener.capture(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType));
  },
github DeligenceTechnologies / PanoplyCMS / node_modules / react / lib / ReactEventListener.js View on Github external
trapCapturedEvent: function (topLevelType, handlerBaseName, handle) {
    var element = handle;
    if (!element) {
      return null;
    }
    return EventListener.capture(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType));
  },