nl_tokens: this method has four signatures : () - global getter ( bool ) - global setter ( element ) - element getter ( element bool ) - element setter<F37 >
pl_tokens: function ( element , bool ) { var argCount = arguments . length ; if ( argCount === 0 ) { // () - Global getter bool = ! ! animationsEnabled ; } else { var hasElement = isElement ( element ) ; if ( ! hasElement ) { // (bool) - Global setter bool = animationsEnabled = ! ! element ; } else { var node = getDomNode ( element ) ; if ( argCount === 1 ) { // (element) - Element getter bool = ! disabledElementsLookup . get ( node ) ; } else { // (element, bool) - Element setter if ( ! disabledElementsLookup . has ( node ) ) { // The element is added to the map for the first time. // Create a listener to remove it on `$destroy` (to avoid memory leak). jqLite ( element ) . <mask> ( '$destroy' , removeFromDisabledElementsLookup ) ; } disabledElementsLookup . set ( node , ! bool ) ; } } } return bool ; }