"use strict";

Liferay.Loader.define("site-navigation-item-selector-web$dom-helpers@5.2.0/cjs/listen", ['module', 'exports', 'require', '@site-navigation-item-selector-web$babel/runtime/helpers/interopRequireDefault', './addEventListener', './removeEventListener'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    var _interopRequireDefault = require("@site-navigation-item-selector-web$babel/runtime/helpers/interopRequireDefault");

    exports.__esModule = true;
    exports.default = void 0;

    var _addEventListener = _interopRequireDefault(require("./addEventListener"));

    var _removeEventListener = _interopRequireDefault(require("./removeEventListener"));

    function listen(node, eventName, handler, options) {
      (0, _addEventListener.default)(node, eventName, handler, options);
      return function () {
        (0, _removeEventListener.default)(node, eventName, handler, options);
      };
    }

    var _default = listen;
    exports.default = _default;
    module.exports = exports["default"];
  }
});
//# sourceMappingURL=listen.js.map