Skip to content

Commit

Permalink
breaking(pat modal): Remove untested and unused (core Plone) router o…
Browse files Browse the repository at this point in the history
…ption.
  • Loading branch information
thet committed May 22, 2022
1 parent ab780b4 commit 79bcc81
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/pat/modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -108,10 +107,6 @@ export default Base.extend({
return "";
},
},
routerOptions: {
id: null,
pathExp: null,
},
form: function (actions) {
var self = this;
var $modal = self.$modal;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 79bcc81

Please sign in to comment.