public static function is_ajax() { if (defined('DOING_AJAX') and DOING_AJAX) { return true; } return false; }
public function after_output() { # flush once, because we're nice if (QM_Util::is_ajax() and ob_get_length()) { ob_flush(); } }