fix bug in dweetio datasource plugin

when dweetio datasource's settings changed, it should only stop the listener for its own thing, instead of all listeners. the old codes will cause issue when there are 1+ dweetio datasources
pull/172/head
Vincent Wang 2016-04-18 11:03:05 +08:00
parent 4153458355
commit e8461e8f3d
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@
}
this.onSettingsChanged = function (newSettings) {
dweetio.stop_listening();
dweetio.stop_listening_for(currentSettings.thing_id);
currentSettings = newSettings;