<commit_before>﻿/**
	_moon.Scrim_ provides an overlay that will prevent taps from propagating to
	the controls that it covers. A scrim may be "floating" or "non-floating". A
	floating scrim will fill the entire viewport, while a non-floating scrim
	will be constrained	by the dimensions of its container.

	The scrim should have a CSS class of _"moon-scrim-transparent"_,
	_"moon-scrim-translucent"_,	or any other class that has
	_"pointer-events: auto"_ in its style properties.

	You may specify the z-index at which you want the scrim to appear by calling
	_showAtZIndex()_; if you do so, you must call _hideAtZIndex()_ with the same
	value to hide the scrim.
*/

enyo.kind({
	name: "moon.Scrim",
	//* @protected
	//* Current visibility state of the scrim
	showing: false,
	classes: "moon-scrim enyo-fit",
	/**
		If true, the scrim is rendered in a floating layer outside of other
		controls. This can be used to guarantee that the scrim will be shown on top
		of other controls.
	*/
	floating: false,
	//* @protected
	create: function() {
		this.inherited(arguments);
		this.zStack = [];
		if (this.floating) {
			this.setParent(enyo.floatingLayer);
		}
	},
	showingChanged: function() {
	// auto render when shown.
		if (this.floating && this.showing && !this.hasNode()) {
			this.render();
		}
		this.inherited(arguments);
		//this.addRemoveClass(this.showingClassName, this.showing);<commit_msg>GF-53466 - Adding comment to clarify that z-index should be an integer. Enyo-DCO-1.1-Signed-Off-By: <NAME> (<EMAIL>)<commit_after>﻿/**
	_moon.Scrim_ provides an overlay that will prevent taps from propagating to
	the controls that it covers. A scrim may be "floating" or "non-floating". A
	floating scrim will fill the entire viewport, while a non-floating scrim
	will be constrained	by the dimensions of its container.

	The scrim should have a CSS class of _"moon-scrim-transparent"_,
	_"moon-scrim-translucent"_,	or any other class that has
	_"pointer-events: auto"_ in its style properties.

	You may specify the z-index at which you want the scrim to appear by passing
	an integer value to _showAtZIndex()_; if you do so, you must call
	_hideAtZIndex()_ with the same value to hide the scrim.
*/

enyo.kind({
	name: "moon.Scrim",
	//* @protected
	//* Current visibility state of the scrim
	showing: false,
	classes: "moon-scrim enyo-fit",
	/**
		If true, the scrim is rendered in a floating layer outside of other
		controls. This can be used to guarantee that the scrim will be shown on top
		of other controls.
	*/
	floating: false,
	//* @protected
	create: function() {
		this.inherited(arguments);
		this.zStack = [];
		if (this.floating) {
			this.setParent(enyo.floatingLayer);
		}
	},
	showingChanged: function() {
	// auto render when shown.
		if (this.floating && this.showing && !this.hasNode()) {
			this.render();
		}
		this.inherited(arguments);
		//this.addRemoveClass(this.showingClassName, this.showing);
{'fraction_non_alphanumeric': 0.10351896139391868, 'fraction_numerical': 0.0023915271609156134, 'mean_word_length': 3.8396694214876033, 'pattern_counts': {'":': 0, '<': 5, '<?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': '298022', 'n_tokens_mistral': 1018, 'n_tokens_neox': 947, 'n_words': 354}