fix wrong this scope
This commit is contained in:
parent
6ed50ee1e9
commit
8270d92073
|
@ -176,8 +176,9 @@ function addSetting(ob) {
|
|||
window["label_"+ob.id] = reflb; // Is this still needed?
|
||||
// Add event function to input
|
||||
refin.on("input", function () {
|
||||
var that = this
|
||||
sliders_throttle(ob.id, function () {
|
||||
socket.send({'cmd': $(this).attr('id'), 'data': $(this).val()});
|
||||
socket.send({'cmd': $(that).attr('id'), 'data': $(that).val()});
|
||||
});
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue