Repository URL to install this package:
|
Version:
2.7.11 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const exotic_1 = require("exotic");
function makeCloseButtonHandler(context) {
return event => {
const {
onContextClose,
onAfterClose,
onClose,
onClick
} = context;
if (exotic_1.isFunction(onContextClose)) {
onContextClose();
}
if (exotic_1.isFunction(onAfterClose)) {
onAfterClose();
}
if (exotic_1.isFunction(onClose)) {
onClose();
}
if (exotic_1.isFunction(onClick)) {
onClick();
}
};
}
exports.makeCloseButtonHandler = makeCloseButtonHandler; //# sourceMappingURL=deps.js.map