From 64a6f5101a63a9d3dbfae1eb966b3c8b0a94075b Mon Sep 17 00:00:00 2001 From: Sebastian Castro Date: Sat, 20 Feb 2021 14:05:01 +0100 Subject: [PATCH] Fix warning : hooks must return a non-undefined value --- static/js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/index.js b/static/js/index.js index f717cc3..e3e19a5 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -226,7 +226,7 @@ function aceEditEvent(hook_name, context, cb){ var callstack, x$; callstack = context.callstack; if (callstack.type !== 'setWraps') { - return; + return false; } x$ = $('iframe[name="ace_outer"]').contents(); x$.find('#sidediv').css({ @@ -267,4 +267,4 @@ if (!isStyleFuncSupported) { } RegExp.escape = function(text){ return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); -}; \ No newline at end of file +};