function _initObserver() {
      var MutationObserver = window.MutationObserver ||
                             window.WebKitMutationObserver ||
                             window.MozMutationObserver;
      var observeDOM;

      if ( MutationObserver ) {
        observeDOM = function() {
          var observer = new MutationObserver( function( mutations ) {
            mutations.forEach( _refreshHeight );
          } );

          observer.observe( _content, { childList: true, subtree: true } );
        };
      } else {
        observeDOM = function() {
          _content.addEventListener( 'DOMNodeInserted', _refreshHeight, false );
          _content.addEventListener( 'DOMNodeRemoved', _refreshHeight, false );
        };
      }

      window.setTimeout( observeDOM, 0 );

      return _that;
    }
/**
     * Watch for the insertion/removal of DOM nodes.
     * @returns {Object} The Expandable instance.
     */
Watch for the insertion/removal of DOM nodes.
@returns {Object} The Expandable instance.
Watch for the insertion / removal of DOM nodes . @returns { Object } The Expandable instance .
function _initObserver() {
      var MutationObserver = window.MutationObserver ||
                             window.WebKitMutationObserver ||
                             window.MozMutationObserver;
      var observeDOM;
      if ( MutationObserver ) {
        observeDOM = function() {
          var observer = new MutationObserver( function( mutations ) {
            mutations.forEach( _refreshHeight );
          } );
          observer.observe( _content, { childList: true, subtree: true } );
        };
      } else {
        observeDOM = function() {
          _content.addEventListener( 'DOMNodeInserted', _refreshHeight, false );
          _content.addEventListener( 'DOMNodeRemoved', _refreshHeight, false );
        };
      }
      window.setTimeout( observeDOM, 0 );
      return _that;
    }
function _initObserver ( ) { var MutationObserver = window . MutationObserver || window . WebKitMutationObserver || window . MozMutationObserver ; var observeDOM ; if ( MutationObserver ) { observeDOM = function ( ) { var observer = new MutationObserver ( function ( mutations ) { mutations . forEach ( _refreshHeight ) ; } ) ; observer . observe ( _content , { childList : true , subtree : true } ) ; } ; } else { observeDOM = function ( ) { _content . addEventListener ( 'DOMNodeInserted' , _refreshHeight , false ) ; _content . addEventListener ( 'DOMNodeRemoved' , _refreshHeight , false ) ; } ; } window . setTimeout ( observeDOM , 0 ) ; return _that ; }
Watch for the insertion/removal of DOM nodes.
Watch for the insertion / removal of DOM nodes .