In your code:
(function(mod) {
this.CodeMirror = mod();
})(function() {
"use strict";
(15,000-odd lines of advanced JS)
}
mod . :
function something(mod) {
this.CodeMirror = mod();
}
, mod - , , , .
, , mod, :
function() {
"use strict";
(15,000-odd lines of advanced JS)
}
, , () , CodeMirror.
— one-mdash; - this, , this window . , :
(function(mod) {
this.CodeMirror = mod();
}).call(this, function() {
"use strict";
(15,000-odd lines of advanced JS)
})
, this , "" . , this undefined "" , .