luci-base: luci.js: add L.bind() helper

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2019-01-25 08:19:36 +01:00
parent ef187d5238
commit 1b931e0262

View file

@ -488,6 +488,10 @@
throw e;
},
bind: function(fn, self /*, ... */) {
return Function.prototype.bind.apply(fn, this.varargs(arguments, 2, self));
},
/* Class require */
require: function(name, from) {
var L = this, url = null, from = from || [];