mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +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.sync = new U.SyncEngine(this)
|
||||
let isDirty = false // self status
|
||||
try {
|
||||
Object.defineProperty(this, 'isDirty', {
|
||||
|
@ -255,7 +256,6 @@ U.Map = L.Map.extend({
|
|||
this.backup()
|
||||
this.initContextMenu()
|
||||
this.on('click contextmenu.show', this.closeInplaceToolbar)
|
||||
this.sync = new U.SyncEngine(this)
|
||||
},
|
||||
|
||||
initSyncEngine: async function () {
|
||||
|
|
Loading…
Reference in a new issue