codemirror/CodeMirror — pull request #2923 by jaredly (2014-11-11 17:10:59+00:00)
Title: Allow a custom global scope

Use case: I'm using completion on js code that will be executed in an iframe, which has a different global scope than the context in which codemirror is loaded.
This allows you to pass in an object as a global via the `globalScope` option.