mirror of https://github.com/aredn/aredn.git
Fix three-arg version of uci.delete (#1680)
This commit is contained in:
parent
722b13288e
commit
f94ab2e2a1
|
@ -220,10 +220,15 @@ const uciMethods =
|
|||
}
|
||||
},
|
||||
|
||||
"delete": function(a, b)
|
||||
"delete": function(a, b, c)
|
||||
{
|
||||
this.init();
|
||||
if (c === undefined) {
|
||||
cursor.delete(a, b);
|
||||
}
|
||||
else {
|
||||
cursor.delete(a, b, c);
|
||||
}
|
||||
},
|
||||
|
||||
error: function()
|
||||
|
@ -295,10 +300,15 @@ const uciMeshMethods =
|
|||
}
|
||||
},
|
||||
|
||||
"delete": function(a, b)
|
||||
"delete": function(a, b, c)
|
||||
{
|
||||
this.init();
|
||||
if (c === undefined) {
|
||||
cursorm.delete(a, b);
|
||||
}
|
||||
else {
|
||||
cursorm.delete(a, b, c);
|
||||
}
|
||||
},
|
||||
|
||||
error: function()
|
||||
|
|
Loading…
Reference in New Issue