nl_tokens: Updates general data of this node like isFirst isLast depth . This method is internally called after a node is moved . This shouldn t have to be called by the developer unless they are creating custom Tree plugins .
pl_tokens: function ( silent ) { var me = this , parentNode = me . parentNode , isFirst = ( ! parentNode ? true : parentNode . firstChild == me ) , isLast = ( ! parentNode ? true : parentNode . lastChild == me ) , depth = 0 , parent = me , children = me . childNodes , ln = children . length , i ; while ( parent . parentNode ) { ++ depth ; parent = parent . parentNode ; } me . beginEdit ( ) ; me . set ( { isFirst : isFirst , isLast : isLast , <mask> : depth , index : parentNode ? parentNode . indexOf ( me ) : 0 , parentId : parentNode ? parentNode . getId ( ) : null } ) ; me . endEdit ( silent ) ; if ( silent ) { me . commit ( silent ) ; } for ( i = 0 ; i < ln ; i ++ ) { children [ i ] . updateInfo ( silent ) ; } }