mirror of
https://github.com/marktext/marktext.git
synced 2025-05-02 17:19:03 +08:00
optimization: remove debug code
This commit is contained in:
parent
70023e526a
commit
dc82145d00
@ -99,7 +99,6 @@ class ContentState {
|
||||
}
|
||||
|
||||
render (isRenderCursor = true) {
|
||||
console.log('render')
|
||||
const { blocks, cursor, searchMatches: { matches, index } } = this
|
||||
const activeBlocks = this.getActiveBlocks()
|
||||
matches.forEach((m, i) => {
|
||||
@ -112,7 +111,6 @@ class ContentState {
|
||||
}
|
||||
|
||||
partialRender (blocks) {
|
||||
console.log('partialrender')
|
||||
const { cursor, searchMatches: { matches, index } } = this
|
||||
const activeBlocks = this.getActiveBlocks()
|
||||
matches.forEach((m, i) => {
|
||||
|
@ -280,7 +280,7 @@ const updateCtrl = ContentState => {
|
||||
// bugfix: #67 problem 1
|
||||
if (block && block.icon) return event.preventDefault()
|
||||
|
||||
if (isMetaKey(event) || event.key === EVENT_KEYS.Enter) {
|
||||
if (isMetaKey(event)) {
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user