From 0d753cf52fb5aaa369ea2373a9da8e026881dac3 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 12 Dec 2017 13:28:16 -0700 Subject: [PATCH] client: Alias Object.debug and mc.debug.object. --- modules/static/charybdis/debug.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/static/charybdis/debug.js b/modules/static/charybdis/debug.js index f9a0839cb..c02fde4d5 100644 --- a/modules/static/charybdis/debug.js +++ b/modules/static/charybdis/debug.js @@ -153,6 +153,15 @@ const debug = }, }; +/** Convenience because I keep typing it + */ +Object.debug = function(...obj) +{ + return debug.object(...obj); +}; + +/** + */ function stacktrace() { function _stacktrace(caller)