nl_tokens: / * Ol . prototype . getAllIncludingForked = function ( id cb ) { // TODO optimize away _ . assertLength ( arguments 2 ) _ . assertInt ( id )
pl_tokens: function selectInside ( edits , innerId ) { var inside = false //var depth = 0 //var depthAtInside var insideNested = <mask> var result = [ ] //console.log('selectInside(' + JSON.stringify(innerId) + '): ' + JSON.stringify(edits)) //_.errout('TODO upgrade to modern state-based paths') for ( var i = 0 ; i < edits . length ; ++ i ) { var e = edits [ i ] var op = e . op if ( op === editCodes . selectObject ) { var objId = e . edit . id if ( objId === innerId ) { inside = true } } else if ( op === editCodes . selectProperty ) { } else if ( fp . isKeySelectCode [ op ] ) { } if ( inside ) { //console.log('*'+inside + ' ' + JSON.stringify(e)) result . push ( e ) } else { //console.log('@'+inside + ' ' + JSON.stringify(e)) } } //console.log(JSON.stringify(result)) return result }