dates/datetoggle.js
function initStyle(opt_config) {
  var config = objects.clone(defaultConfig);
  if (opt_config) {
    objects.merge(config, opt_config);
  }
  var attrName = config.attributeName;
  var selector = '[' + attrName + ']';
  var rules = {};
  rules[selector] = {'display': 'none !important'};
  ui.createStyle(rules);
}
function initStyle(opt_config) {
  var config = objects.clone(defaultConfig);
  if (opt_config) {
    objects.merge(config, opt_config);
  }
  var attrName = config.attributeName;
  var selector = '[' + attrName + ']';
  var rules = {};
  rules[selector] = {'display': 'none !important'};
  ui.createStyle(rules);
}
function initStyle ( opt_config ) { var config = objects . clone ( defaultConfig ) ; if ( opt_config ) { objects . merge ( config , opt_config ) ; } var attrName = config . attributeName ; var selector = '[' + attrName + ']' ; var rules = { } ; rules [ selector ] = { 'display' : 'none !important' } ; ui . createStyle ( rules ) ; }
Creates the styles used for toggling dates. Permits usage of datetoggle
without needing to manually add styles to the page. You can optionally
call this at the top of the page to avoid FOUC.
Creates the styles used for toggling dates . Permits usage of datetoggle without needing to manually add styles to the page . You can optionally call this at the top of the page to avoid FOUC .