nl_tokens: ------------------------------------------------------ Window context menu handlers
pl_tokens: function ( menu ) { var items = menu . items . items , win = menu . theWin ; items [ 0 ] . setDisabled ( win . maximized !== true && win . hidden !== true ) ; // Restore items [ 1 ] . setDisabled ( win . minimized === true ) ; // Minimize items [ 2 ] . setDisabled ( win . maximized === true || win . <mask> === true ) ; // Maximize items [ 4 ] . setDisabled ( ! ! win . noShortcut ) ; items [ 5 ] . setDisabled ( ! ! win . noShortcut ) ; }