code: function ready(fn, period, filter) {
  						var tasty = this;
  						tasty.hooks.set(
  							filter,
  							function(result) {
  								return tasty.utils.thenable(function(resolve) {
  									var interval = setInterval(function() {
  										if (fn.call(tasty)) {
  											clearInterval(interval);
  											resolve(result);
  										}
  									}, period);
  								});
  							},
  							'ready:until ' + period
  						);
  					}
docs: istanbul ignore next