mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
Only check on fileName if it's there
This commit is contained in:
@@ -177,7 +177,7 @@ function createNewCMInstance(num) {
|
||||
autoCloseTags: true,
|
||||
highlightSelectionMatches: true,
|
||||
showTrailingSpace: true,
|
||||
lintWith: fileName.indexOf(".js")>-1 ? CodeMirror.javascriptValidator : false,
|
||||
lintWith: fileName && fileName.indexOf(".js")>-1 ? CodeMirror.javascriptValidator : false,
|
||||
keyMap: "ICEcoder",
|
||||
onKeyEvent: function(thisCM, e) {
|
||||
top.ICEcoder.redoChangedContent(e);
|
||||
|
||||
Reference in New Issue
Block a user