From 79bcc8109beff43751c3d1ae5611359cd9f4dabd Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Mon, 23 May 2022 01:06:35 +0200 Subject: [PATCH] breaking(pat modal): Remove untested and unused (core Plone) router option. --- src/pat/modal/modal.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/pat/modal/modal.js b/src/pat/modal/modal.js index 00fe6a5a9..73456f749 100644 --- a/src/pat/modal/modal.js +++ b/src/pat/modal/modal.js @@ -3,7 +3,6 @@ import Base from "@patternslib/patternslib/src/core/base"; import _ from "underscore"; import Backdrop from "../backdrop/backdrop"; import registry from "@patternslib/patternslib/src/core/registry"; -import Router from "../../core/router"; import utils from "../../core/utils"; import _t from "../../core/i18n"; @@ -108,10 +107,6 @@ export default Base.extend({ return ""; }, }, - routerOptions: { - id: null, - pathExp: null, - }, form: function (actions) { var self = this; var $modal = self.$modal; @@ -540,19 +535,6 @@ export default Base.extend({ self.options.loadLinksWithinModal = $.parseJSON( self.options.loadLinksWithinModal ); - // Router - if (self.options.routerOptions.id !== null) { - Router.addRoute( - "modal", - self.options.routerOptions.id, - function () { - this.show(); - }, - self, - self.options.routerOptions.pathExp, - self.options.routerOptions.expReplace - ); - } if (self.options.backdropOptions.closeOnEsc === true) { $(document).on("keydown", function (e, data) {