<commit_before>﻿// gesture feature
/**
 enyo.gesture is an event filter for enyo dispatcher.
 There are no public methods defined here.
 */

//* @public
enyo.gesture = {
	//* @protected
	holdDelay: 200,
	makeEvent: function(inType, inEvent) {
		var e = enyo.clone(inEvent);
		e.type = inType;
		return e;
	},
	down: function(inEvent) {
		var e = this.makeEvent("down", inEvent);
		enyo.dispatch(e);
		this.dispatchTarget = e.dispatchTarget;
		this.beginHold(e);
	},
	up: function(inEvent) {
		this.cancelHold();
		var e = this.makeEvent("up", inEvent);
		var tapPrevented = false;
		e.preventTap = function() {
			tapPrevented = true;
		};
		enyo.dispatch(e);
		if (!tapPrevented) {<commit_msg>* stop Chrome from complaining about accessing layerX/Y in event object (we see this due to cloning the event object for gesture events)<commit_after>﻿// gesture feature
/**
 enyo.gesture is an event filter for enyo dispatcher.
 There are no public methods defined here.
 */

//* @public
enyo.gesture = {
	//* @protected
	holdDelay: 200,
	makeEvent: function(inType, inEvent) {
		// FIXME: omg, pacify chrome warning.
		delete inEvent.layerX;
		delete inEvent.layerY;
		var e = enyo.clone(inEvent);
		e.type = inType;
		return e;
	},
	down: function(inEvent) {
		var e = this.makeEvent("down", inEvent);
		enyo.dispatch(e);
		this.dispatchTarget = e.dispatchTarget;
		this.beginHold(e);
	},
	up: function(inEvent) {
		this.cancelHold();
		var e = this.makeEvent("up", inEvent);
		var tapPrevented = false;
		e.preventTap = function() {
			tapPrevented = true;
		};
		enyo.dispatch(e);
		if (!tapPrevented) {
{'fraction_non_alphanumeric': 0.13803872579637727, 'fraction_numerical': 0.0037476577139287947, 'mean_word_length': 3.7537091988130564, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5862098', 'n_tokens_mistral': 619, 'n_tokens_neox': 566, 'n_words': 151}