luci-base: luci.js: add L.bind() helper
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
ef187d5238
commit
1b931e0262
1 changed files with 4 additions and 0 deletions
|
@ -488,6 +488,10 @@
|
||||||
throw e;
|
throw e;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
bind: function(fn, self /*, ... */) {
|
||||||
|
return Function.prototype.bind.apply(fn, this.varargs(arguments, 2, self));
|
||||||
|
},
|
||||||
|
|
||||||
/* Class require */
|
/* Class require */
|
||||||
require: function(name, from) {
|
require: function(name, from) {
|
||||||
var L = this, url = null, from = from || [];
|
var L = this, url = null, from = from || [];
|
||||||
|
|
Loading…
Reference in a new issue