Correcting event handler for codemirror
Similar correction on event registration with codemirror instance.
exploring CM3.1 JS changes
Merge commit 'dyoo/codemirror-3.1' into codemirror-3.1