Updated using features in TypeScript v0.9

Previously the module name couldn't match the global function name, so we had to declare module 'CM' and function CodeMirror.

Now that TS can handle the naming clash correctly, we will go to the naming convention from CodeMirror docs.

Additionally, that allows using constructor for CodeMirror.Doc. Previously because of naming CM.Doc that wouldn't work.

Note that CodeMirror itself is not declared as a class, even though their actual implementation does allow 'newing' it internally. However, that is not advertised in the docs, so we assume it is a quirk for some edge case compatibility and leaving it out of the API declarations here.
This commit is contained in:
mihailik
2013-06-25 02:02:29 +02:00
parent 4e89cd045d
commit 4d3992f9d2

File diff suppressed because it is too large Load Diff