luci-base: luci.js: fix L.Poll.remove()

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2019-09-03 16:47:19 +02:00
parent 14b6ea6ea7
commit 88969529f1

View file

@ -491,7 +491,7 @@
return true;
},
remove: function(entry) {
remove: function(fn) {
if (typeof(fn) != 'function')
throw new TypeError('Invalid argument to LuCI.Poll.remove()');