nl_tokens: Changing position in nodeList
pl_tokens: function changePosition ( el , index ) { var HTMLElement = <mask> . el ; if ( HTMLElement && HTMLElement . parentNode ) { var parentNode = HTMLElement . parentNode , elGroup = el . elGroup , size = elGroup . size , target = elGroup . getKeyByIndex ( index ) || elGroup . getLast ( ) ; if ( target !== HTMLElement ) { if ( size - 1 >= index ) { parentNode . insertBefore ( HTMLElement , target ) ; } else if ( target . nextSibling !== null ) { parentNode . insertBefore ( HTMLElement , target . nextSibling ) ; } else { parentNode . appendChild ( HTMLElement ) ; } el . elGroup . changeIndex ( HTMLElement , index ) ; } } }