Changeset - 1eeb3510917e
[Not reviewed]
stable
0 1 0
Mads Kiilerich - 10 years ago 2015-09-20 22:22:50
madski@unity3d.com
codemirror: remove the bad and hopefully unused CodeMirror.modeURL guessing

It should always be set in initCodeMirror before CodeMirror actually is used.
1 file changed with 0 insertions and 3 deletions:
0 comments (0 inline, 0 general)
kallithea/public/js/codemirror_loadmode.js
Show inline comments
 
(function() {
 
  // FIXME: if this default value ever is used, it will probably be wrong
 
  if (!CodeMirror.modeURL) CodeMirror.modeURL = "../mode/%N/%N.js";
 

	
 
  var loading = {};
 
  function splitCallback(cont, n) {
 
    var countDown = n;
 
    return function() { if (--countDown == 0) cont(); };
 
  }
 
  function ensureDeps(mode, cont) {
0 comments (0 inline, 0 general)