}
else {
if (typeof options.cancel !== "function") {
- options.cancel = () => { };
+ options.cancel = () => {
+ // Do nothing
+ };
}
this.callbackCancel = options.cancel;
this.callbackConfirm = options.confirm;
if (!callback) {
const redirectUrl = element.dataset.link;
if (redirectUrl) {
- callback = function (pageNo) {
- window.location.href = redirectUrl.replace(/pageNo=%d/, "pageNo=" + pageNo);
+ callback = (pageNo) => {
+ window.location.href = redirectUrl.replace(/pageNo=%d/, `pageNo=${pageNo}`);
};
}
else {
- callback = function () { };
+ callback = () => {
+ // Do nothing.
+ };
}
}
else if (typeof callback !== "function") {
/**
* @deprecated 5.4 - This method is a noop.
*/
- function setDialogContainer(_container) { }
+ function setDialogContainer(_container) {
+ // Do nothing.
+ }
exports.setDialogContainer = setDialogContainer;
function _getQueryObject(query) {
if (typeof query !== "string" || query.trim() === "") {
};
} else {
if (typeof options.cancel !== "function") {
- options.cancel = () => {};
+ options.cancel = () => {
+ // Do nothing
+ };
}
this.callbackCancel = options.cancel;
if (!callback) {
const redirectUrl = element.dataset.link;
if (redirectUrl) {
- callback = function (pageNo) {
- window.location.href = redirectUrl.replace(/pageNo=%d/, "pageNo=" + pageNo);
+ callback = (pageNo) => {
+ window.location.href = redirectUrl.replace(/pageNo=%d/, `pageNo=${pageNo}`);
};
} else {
- callback = function () {};
+ callback = () => {
+ // Do nothing.
+ };
}
} else if (typeof callback !== "function") {
throw new TypeError("Expected a valid function for parameter 'callback'.");
/**
* @deprecated 5.4 - This method is a noop.
*/
-export function setDialogContainer(_container: Element): void {}
+export function setDialogContainer(_container: Element): void {
+ // Do nothing.
+}
function _getQueryObject(query: string): MediaQueryData {
if (typeof (query as any) !== "string" || query.trim() === "") {