Signed-off-by: Paul Donald <newtwen+github@gmail.com>
* @hideconstructor
* @classdesc
*
- * The `Request.poll` class provides some convince wrappers around
+ * The `Request.poll` class provides some convenience wrappers around
* {@link LuCI.poll} mainly to simplify registering repeating HTTP
* request calls as polling functions.
*/
opts = Object.assign({}, options, { timeout: ival * 1000 - 5 });
var fn = function() {
- return Request.request(url, options).then(function(res) {
+ return Request.request(url, opts).then(function(res) {
if (!Poll.active())
return;