zjquery: Remove bogus after/before functions.

This commit is contained in:
Steve Howell 2021-02-22 13:41:35 +00:00 committed by Steve Howell
parent 132e67cb28
commit 5caee967d3
2 changed files with 2 additions and 7 deletions

View File

@ -102,6 +102,8 @@ test_ui("subscriber_pills", () => {
const subscriptions_table_selector = "#subscriptions_table";
const input_field_stub = $.create(".input");
input_field_stub.before = () => {};
const sub_settings_selector = `#subscription_overlay .subscription_settings[data-stream-id='${CSS.escape(
denmark.stream_id,
)}']`;

View File

@ -537,13 +537,6 @@ function make_zjquery() {
zjquery.Event = Event;
fn.after = function (s) {
return s;
};
fn.before = function (s) {
return s;
};
fn.popover = () => {
throw new Error(`
Do not try to test $.fn.popover code unless