<commit_before>import registerEventHooks from './registerEventHooks';
// 'wheel' is a special case
const wheel = ('onwheel' in document || document.documentMode >= 9)
	? 'wheel'
	: 'mousewheel';

registerEventHooks(wheel, function(handler) {
	return { handler };
});<commit_msg>events doesn't throw on server side anymore<commit_after>import registerEventHooks from './registerEventHooks';
import ExecutionEnvironment from '../../util/ExecutionEnvironment';

let wheel = 'wheel'; // default: 'wheel'

if ( ExecutionEnvironment.canUseDOM) {
	
// 'wheel' is a special case
wheel = ('onwheel' in document || document.documentMode >= 9)
	? 'wheel'
	: 'mousewheel';
}

registerEventHooks(wheel, function(handler) {
	return { handler };
});
{'fraction_non_alphanumeric': 0.14305177111716622, 'fraction_numerical': 0.0027247956403269754, 'mean_word_length': 5.336206896551724, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4195565', 'n_tokens_mistral': 217, 'n_tokens_neox': 213, 'n_words': 60}