whole_func_string: function ready(period, filter) {
  						var tasty = this;
  						tasty.hooks.set(
  							filter,
  							function(result) {
  								return tasty.utils.thenable(
  									// eslint-disable-next-line no-undef
  									document.readyState === 'interactive' ||
  										// eslint-disable-next-line no-undef
  										document.readyState === 'complete' ?
  											result :
  											function(resolve) {
  												// eslint-disable-next-line no-undef
  												tasty.dom.on(document, 'DOMContentLoaded', resolve);
  												// eslint-disable-next-line no-undef
  												tasty.dom.on(document, 'readystatechage', function() {
  													// eslint-disable-next-line no-undef
  													(document.readyState === 'interactive' ||
  														// eslint-disable-next-line no-undef
  														document.readyState === 'complete') &&
  															resolve();
  												});
  											}
  								).then(function() {
  									return period ?
  										tasty.utils.delay(period, result) :
  										result;
  								});
  							},
  							period ?
  								'ready:document ' + period :
  								'ready:document'
  						);
  					}
func_code_string: function ready(period, filter) {
  						var tasty = this;
  						tasty.hooks.set(
  							filter,
  							function(result) {
  								return tasty.utils.thenable(
  									// eslint-disable-next-line no-undef
  									document.readyState === 'interactive' ||
  										// eslint-disable-next-line no-undef
  										document.readyState === 'complete' ?
  											result :
  											function(resolve) {
  												// eslint-disable-next-line no-undef
  												tasty.dom.on(document, 'DOMContentLoaded', resolve);
  												// eslint-disable-next-line no-undef
  												tasty.dom.on(document, 'readystatechage', function() {
  													// eslint-disable-next-line no-undef
  													(document.readyState === 'interactive' ||
  														// eslint-disable-next-line no-undef
  														document.readyState === 'complete') &&
  															resolve();
  												});
  											}
  								).then(function() {
  									return period ?
  										tasty.utils.delay(period, result) :
  										result;
  								});
  							},
  							period ?
  								'ready:document ' + period :
  								'ready:document'
  						);
  					}
func_documentation_string: istanbul ignore next