Move singleton object into JSONNode

This commit is contained in:
Jos de Jong 2020-07-27 09:44:09 +02:00
parent b99d4b4d5d
commit c441663528
2 changed files with 6 additions and 6 deletions

View File

@ -11,7 +11,6 @@
STATE_SEARCH_VALUE,
INDENTATION_WIDTH
} from '../constants.js'
import { singleton } from '../singleton.js'
import {
getPlainText,
isAppendNodeSelector,
@ -40,6 +39,12 @@
export let onSelect
export let selection
const singleton = {
mousedown: false,
selectionAnchor: null, // Path
selectionFocus: null // Path
}
$: expanded = state && state[STATE_EXPANDED]
$: limit = state && state[STATE_LIMIT]
$: props = state && state[STATE_PROPS]

View File

@ -1,5 +0,0 @@
export const singleton = {
mousedown: false,
selectionAnchor: null, // Path
selectionFocus: null // Path
}