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();
|
this.init();
|
||||||
cursor.delete(a, b);
|
if (c === undefined) {
|
||||||
|
cursor.delete(a, b);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
cursor.delete(a, b, c);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
error: function()
|
error: function()
|
||||||
|
@ -295,10 +300,15 @@ const uciMeshMethods =
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"delete": function(a, b)
|
"delete": function(a, b, c)
|
||||||
{
|
{
|
||||||
this.init();
|
this.init();
|
||||||
cursorm.delete(a, b);
|
if (c === undefined) {
|
||||||
|
cursorm.delete(a, b);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
cursorm.delete(a, b, c);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
error: function()
|
error: function()
|
||||||
|
|
Loading…
Reference in New Issue