mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 03:42:37 +02:00
fix(sync): intialize the sync engine before entering edit mode.
Otherwise `this.sync` is not defined.
This commit is contained in:
parent
46207741ff
commit
01408254c9
1 changed files with 1 additions and 1 deletions
|
@ -155,6 +155,7 @@ U.Map = L.Map.extend({
|
||||||
this.options.onLoadPanel = 'datafilters'
|
this.options.onLoadPanel = 'datafilters'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.sync = new U.SyncEngine(this)
|
||||||
let isDirty = false // self status
|
let isDirty = false // self status
|
||||||
try {
|
try {
|
||||||
Object.defineProperty(this, 'isDirty', {
|
Object.defineProperty(this, 'isDirty', {
|
||||||
|
@ -255,7 +256,6 @@ U.Map = L.Map.extend({
|
||||||
this.backup()
|
this.backup()
|
||||||
this.initContextMenu()
|
this.initContextMenu()
|
||||||
this.on('click contextmenu.show', this.closeInplaceToolbar)
|
this.on('click contextmenu.show', this.closeInplaceToolbar)
|
||||||
this.sync = new U.SyncEngine(this)
|
|
||||||
},
|
},
|
||||||
|
|
||||||
initSyncEngine: async function () {
|
initSyncEngine: async function () {
|
||||||
|
|
Loading…
Reference in a new issue