Fix variable exporting error

This commit is contained in:
Yukai Huang 2017-03-13 22:00:20 +08:00
parent e97b609d91
commit cc30d370f7
2 changed files with 4 additions and 3 deletions

View File

@ -83,6 +83,7 @@ import getUIElements from './lib/editor/ui-elements'
var defaultTextHeight = 20 var defaultTextHeight = 20
var viewportMargin = 20 var viewportMargin = 20
var defaultEditorMode = 'gfm'
var idleTime = 300000 // 5 mins var idleTime = 300000 // 5 mins
var updateViewDebounce = 100 var updateViewDebounce = 100
@ -363,7 +364,9 @@ function updateStatusBar () {
} }
// initalize ui reference // initalize ui reference
// TODO: fix ui exporting
const ui = getUIElements() const ui = getUIElements()
window.ui = ui
// page actions // page actions
var opts = { var opts = {

View File

@ -10,7 +10,7 @@ const jumpToAddressBarKeymapName = isMac ? 'Cmd-L' : 'Ctrl-L'
export default class Editor { export default class Editor {
constructor () { constructor () {
this.editor = null this.editor = null
this.jumpToAddressBarKeymapValue = null
this.defaultExtraKeys = { this.defaultExtraKeys = {
F10: function (cm) { F10: function (cm) {
cm.setOption('fullScreen', !cm.getOption('fullScreen')) cm.setOption('fullScreen', !cm.getOption('fullScreen'))
@ -116,8 +116,6 @@ export default class Editor {
utils.wrapTextWith(this.editor, cm, 'Backspace') utils.wrapTextWith(this.editor, cm, 'Backspace')
} }
} }
this.jumpToAddressBarKeymapValue = null
} }
getStatusBarTemplate (callback) { getStatusBarTemplate (callback) {