<commit_before>/*
---

name: Mask

description: Creates a mask over the entire app.

license: MIT-style license.

authors:
	- <NAME> (<EMAIL>)

requires:
	- View

provides:
	- Mask

...
*/

Moobile.Mask = new Class({

	Extends: Moobile.View,

	options: {
		className: 'mask'
	},

	attachEvents: function() {
		this.element.addEvent('transitionend', this.bound('onTransitionEnd'));
		this.parent();
		return this;
	},

	detachEvents: function() {
		this.element.removeEvent('transitionend', this.bound('onTransitionEnd'));
		this.parent();
		return this;
	},

	show: function() {
		this.element.addClass.delay(5, this.element, 'visible');
		return this;
	},

	hide: function() {
		this.element.removeClass.delay(5, this.element, 'visible');
		return this;
	},

	onTransitionEnd: function(e) {
		var opacity = this.element.getStyle('opacity');
		if (opacity == 0) {<commit_msg>Added the fillStyle options to Mask<commit_after>/*
---

name: Mask

description: Creates a mask over the entire app.

license: MIT-style license.

authors:
	- <NAME> (<EMAIL>)

requires:
	- View

provides:
	- Mask

...
*/

Moobile.Mask = new Class({

	Extends: Moobile.View,

	options: {
		className: 'mask',
		fillStyle: 'solid'
	},

	build: function(element) {
		
		this.parent(element);
		
		if (this.options.className) {
			this.element.addClass(this.options.className + '-' + this.options.fillStyle);			
		}
		
		return this;
	},

	attachEvents: function() {
		this.element.addEvent('transitionend', this.bound('onTransitionEnd'));
		this.parent();
		return this;
	},

	detachEvents: function() {
		this.element.removeEvent('transitionend', this.bound('onTransitionEnd'));
		this.parent();
		return this;
	},

	show: function() {
		this.element.addClass.delay(5, this.element, 'visible');
		return this;
	},

	hide: function() {
		this.element.removeClass.delay(5, this.element, 'visible');
		return this;
	},

	onTransitionEnd: function(e) {
		var opacity = this.element.getStyle('opacity');
		if (opacity == 0) {
{'fraction_non_alphanumeric': 0.16390977443609023, 'fraction_numerical': 0.0030075187969924814, 'mean_word_length': 3.8446601941747574, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6767832', 'n_tokens_mistral': 736, 'n_tokens_neox': 670, 'n_words': 146}