components/state.js
function() {
            var
              activeText   = text.active   || $module.data(metadata.storedText),
              inactiveText = text.inactive || $module.data(metadata.storedText)
            ;
            if( module.is.textEnabled() ) {
              if( module.is.active() && activeText) {
                module.verbose('Resetting active text', activeText);
                module.update.text(activeText);
              }
              else if(inactiveText) {
                module.verbose('Resetting inactive text', activeText);
                module.update.text(inactiveText);
              }
            }
          }
function() {
            var
              activeText   = text.active   || $module.data(metadata.storedText),
              inactiveText = text.inactive || $module.data(metadata.storedText)
            ;
            if( module.is.textEnabled() ) {
              if( module.is.active() && activeText) {
                module.verbose('Resetting active text', activeText);
                module.update.text(activeText);
              }
              else if(inactiveText) {
                module.verbose('Resetting inactive text', activeText);
                module.update.text(inactiveText);
              }
            }
          }
function ( ) { var activeText = text . active || $module . data ( metadata . storedText ) , inactiveText = text . inactive || $module . data ( metadata . storedText ) ; if ( module . is . textEnabled ( ) ) { if ( module . is . active ( ) && activeText ) { module . verbose ( 'Resetting active text' , activeText ) ; module . update . text ( activeText ) ; } else if ( inactiveText ) { module . verbose ( 'Resetting inactive text' , activeText ) ; module . update . text ( inactiveText ) ; } } }
on mouseout sets text to previous value
on mouseout sets text to previous value