From f85559735b794682057e5b8d3854373f4d10dbb9 Mon Sep 17 00:00:00 2001 From: supahgreg Date: Tue, 14 Oct 2025 23:22:00 +0000 Subject: Remove 'App.byId()', which was essentially an alias of 'document.getElementById()'. --- js/common.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'js/common.js') diff --git a/js/common.js b/js/common.js index 2d5e63f44..0d70332aa 100755 --- a/js/common.js +++ b/js/common.js @@ -16,12 +16,6 @@ function ngettext(msg1, msg2, n) { return __((parseInt(n) > 1) ? msg2 : msg1); } -/* exported $ */ -function $(id) { - console.warn("FIXME: please use App.byId() or document.getElementById() instead of $():", id); - return document.getElementById(id); -} - // polyfill for safari https://raw.githubusercontent.com/pladaria/requestidlecallback-polyfill/master/index.js window.requestIdleCallback = window.requestIdleCallback || @@ -364,7 +358,7 @@ const Notify = { kind = kind || this.KIND_GENERIC; keep = keep || false; - const notify = App.byId("notify"); + const notify = document.getElementById("notify"); window.clearTimeout(this.timeout); -- cgit v1.2.3-54-g00ecf