diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-03 15:53:53 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-03 15:53:53 -0700 |
commit | a92a46a783d1928d5ba817d80dab468119da749f (patch) | |
tree | 9a98795754ff7bbb3d5bc7469f36951934dbd93e | |
parent | f2c1073ce17342f47da533c0d32ab426b0b109f5 (diff) |
fixing an Array bounds issue
-rw-r--r-- | system/admin/static/editor/js/materialNote.js | 4 |
1 files changed, 4 insertions, 0 deletions
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); |