dist/material-ui-pickers.umd.js
/**
   * Find a node before which we can insert the sheet.
   */
Find a node before which we can insert the sheet.
Find a node before which we can insert the sheet .
function findPrevNode(options) {
    var registry = sheets.registry;
    if (registry.length > 0) {
      var sheet = findHigherSheet(registry, options);
      if (sheet && sheet.renderer) {
        return {
          parent: sheet.renderer.element.parentNode,
          node: sheet.renderer.element
        };
      } 
      sheet = findHighestSheet(registry, options);
      if (sheet && sheet.renderer) {
        return {
          parent: sheet.renderer.element.parentNode,
          node: sheet.renderer.element.nextSibling
        };
      }
    } 
    var insertionPoint = options.insertionPoint;
    if (insertionPoint && typeof insertionPoint === 'string') {
      var comment = findCommentNode(insertionPoint);
      if (comment) {
        return {
          parent: comment.parentNode,
          node: comment.nextSibling
        };
      } 
       warning(false, "[JSS] Insertion point \"" + insertionPoint + "\" not found.") ;
    }
    return false;
  }
function findPrevNode ( options ) { var registry = sheets . registry ; if ( registry . length > 0 ) { var sheet = findHigherSheet ( registry , options ) ; if ( sheet && sheet . renderer ) { return { parent : sheet . renderer . element . parentNode , node : sheet . renderer . element } ; } sheet = findHighestSheet ( registry , options ) ; if ( sheet && sheet . renderer ) { return { parent : sheet . renderer . element . parentNode , node : sheet . renderer . element . nextSibling } ; } } var insertionPoint = options . insertionPoint ; if ( insertionPoint && typeof insertionPoint === 'string' ) { var comment = findCommentNode ( insertionPoint ) ; if ( comment ) { return { parent : comment . parentNode , node : comment . nextSibling } ; } warning ( false , "[JSS] Insertion point \"" + insertionPoint + "\" not found." ) ; } return false ; }
Find a node before which we can insert the sheet.
Find a node before which we can insert the sheet .
// Try to insert before the next higher sheet. // Otherwise insert after the last attached. // Try to find a comment placeholder if registry is empty. // If user specifies an insertion point and it can't be found in the document - // bad specificity issues may appear.