nl_tokens: Methods to handle junctions *
pl_tokens: function ( ob ) { var identifier = ob . identifier || '' ; var clientId = ob . clientId ; var socketId = ob . socketId ; var junctionId = ob . junctionId ; var user = ob . user || { } ; if ( ! ! identifier && ! ! clientId && ! ! socketId && ! ! junctionId ) { var lis = this . junctions ; var r = false ; if ( lis . length > 0 ) { for ( var i = 0 ; i < lis . length ; i ++ ) { var c = lis [ i ] ; if ( c . identifier == identifier && c . clientId == clientId && c . socketId == socketId ) { r = <mask> ; break ; } } } if ( ! r ) { var junc = { identifier : identifier , clientId : clientId , socketId : socketId , junctionId : junctionId , user : user , } if ( ! lastAddedJunction || lastAddedJunction != junc ) { lastAddedJunction = junc ; this . junctions . push ( junc ) ; this . Event . onAddJunction ( junc , user ) ; } } } }