This app provides monitoring and information features for the common freifunk user and the technical stuff of a freifunk community.
Code base is taken from a TUM Practical Course project and added here to see if Freifunk Altdorf can use it.
https://www.freifunk-altdorf.de
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
769 B
24 lines
769 B
'use strict'; |
|
var path = require('./$.path') |
|
, invoke = require('./$.invoke') |
|
, aFunction = require('./$.a-function'); |
|
module.exports = function(/* ...pargs */){ |
|
var fn = aFunction(this) |
|
, length = arguments.length |
|
, pargs = Array(length) |
|
, i = 0 |
|
, _ = path._ |
|
, holder = false; |
|
while(length > i)if((pargs[i] = arguments[i++]) === _)holder = true; |
|
return function(/* ...args */){ |
|
var that = this |
|
, $$ = arguments |
|
, $$len = $$.length |
|
, j = 0, k = 0, args; |
|
if(!holder && !$$len)return invoke(fn, pargs, that); |
|
args = pargs.slice(); |
|
if(holder)for(;length > j; j++)if(args[j] === _)args[j] = $$[k++]; |
|
while($$len > k)args.push($$[k++]); |
|
return invoke(fn, args, that); |
|
}; |
|
}; |