From a92a46a783d1928d5ba817d80dab468119da749f Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Mon, 3 Oct 2016 15:53:53 -0700 Subject: fixing an Array bounds issue --- system/admin/static/editor/js/materialNote.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'system') diff --git a/system/admin/static/editor/js/materialNote.js b/system/admin/static/editor/js/materialNote.js index 02e1bd2..a036053 100644 --- a/system/admin/static/editor/js/materialNote.js +++ b/system/admin/static/editor/js/materialNote.js @@ -4859,6 +4859,10 @@ var dom = (function() { } insideLastBlock = false; } + + if (level < 0) { + level = 0; + } chunk = new Array(level + 1).join(' ') + chunk.trim(); //console.log(level); -- cgit v1.2.3