Delete old options after consuming them
This commit is contained in:
parent
f57ef51bf6
commit
1b60b46a3f
1 changed files with 2 additions and 0 deletions
|
@ -253,9 +253,11 @@ L.U.DataLayer = L.Evented.extend({
|
|||
// Retrocompat
|
||||
if (this.options.remoteData && this.options.remoteData.from) {
|
||||
this.options.fromZoom = this.options.remoteData.from
|
||||
delete this.options.remoteData.from
|
||||
}
|
||||
if (this.options.remoteData && this.options.remoteData.to) {
|
||||
this.options.toZoom = this.options.remoteData.to
|
||||
delete this.options.remoteData.to
|
||||
}
|
||||
this.backupOptions()
|
||||
this.connectToMap()
|
||||
|
|
Loading…
Reference in a new issue