infobar: listen 'updateviewlist' event
check infobar data when the server send the user info data. Change-Id: I0ba1da488f9b3d03dc7e3f42cea718273e6939b1 Signed-off-by: Henry Castro <hcastro@collabora.com>
This commit is contained in:
parent
c4681a79ba
commit
545122e933
1 changed files with 2 additions and 0 deletions
|
@ -10,11 +10,13 @@ L.Map.mergeOptions({
|
|||
|
||||
L.Map.Infobar = L.Handler.extend({
|
||||
addHooks: function () {
|
||||
this._map.on('updateviewslist', this.onUpdateInfo, this);
|
||||
this._map.on('infobar', this.onInfobar, this);
|
||||
},
|
||||
|
||||
removeHooks: function () {
|
||||
this._map.off('infobar', this.onInfobar, this);
|
||||
this._map.off('updateviewlist', this.onUpdateInfo, this);
|
||||
},
|
||||
|
||||
onUpdateInfo: function () {
|
||||
|
|
Loading…
Reference in a new issue