docs: function handleStateChange( newShowContent ) {
                 if( showContent === newShowContent ) {
                    return;
                 }
                 if( newShowContent ) {
                    if( showContent === undefined ) {
                       // initial show: no animations
                       jqElement.show();
                    }
                    else {
                       show();
                       if( options.animationsEnabled && widgetIsVisible ) {
                          startWatchingForContentResizing();
                       }
                    }
                 }
                 else {
                    hide();
                    stopWatchingForContentResizing();
                 }
                 showContent = newShowContent;
              }