cleaned out a not so well thought out experiment...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-05-05 14:23:09 +03:00
parent 5ce24233ab
commit 461ac40509

View File

@ -252,18 +252,6 @@ var makeItemEventMethod = function(event, handler){
}) }
var makeWalker = function(name, func, options){
return function(...args){
// XXX do we get passed options??
return this.walk2(
func,
function(children){
return children[name](...args) },
function(node){
return node && node[name] instanceof Function },
options || {}) } }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -1038,13 +1026,6 @@ var BaseBrowserPrototype = {
&& [ (options || {}).joinPaths !== false ?
p.join('/')
: p ] }, options) },
// XXX need to be able to update context (i.e. path) ...
paths3: makeWalker('path3',
function(n, i, p){
return n
&& [ (options || {}).joinPaths !== false ?
p.join('/')
: p ] }),
// Extended map...