<commit_before>
kff.TextBinder = kff.createClass(
{
	extend: kff.Binder
},
/** @lends kff.TextBinder.prototype */
{
	/**
	 * One-way data binder for plain text content of the element.
	 * Renders text content of the element on change of the bound model attribute.
	 *
	 * @constructs
	 * @augments kff.Binder
	 * @param {Object} options Options object
	 */
	constructor: function(options)
	{
		kff.Binder.call(this, options);
	},

	refresh: function(value)
	{
		this.$element[0].textContent = this.value;
	}
});

if(!('textContent' in document.documentElement))
{
	kff.TextBinder.prototype.refresh = function(value)
	{
		var val = this.value;
		if(val === null || val === undefined) val = '';
		this.$element[0].innerText = val;
	}
}

kff.BindingView.registerBinder('text', kff.TextBinder);<commit_msg>fix(kff.TextBinder): suppress 'undefined' values to be exposed in html (even in standard mode)<commit_after>
kff.TextBinder = kff.createClass(
{
	extend: kff.Binder
},
/** @lends kff.TextBinder.prototype */
{
	/**
	 * One-way data binder for plain text content of the element.
	 * Renders text content of the element on change of the bound model attribute.
	 *
	 * @constructs
	 * @augments kff.Binder
	 * @param {Object} options Options object
	 */
	constructor: function(options)
	{
		kff.Binder.call(this, options);
	},

	refresh: function(value)
	{
		var val = this.value;
		if(val === null || val === undefined) val = '';
		this.$element[0].textContent = val;
	}
});

if(!('textContent' in document.documentElement))
{
	kff.TextBinder.prototype.refresh = function(value)
	{
		var val = this.value;
		if(val === null || val === undefined) val = '';
		this.$element[0].innerText = val;
	}
}

kff.BindingView.registerBinder('text', kff.TextBinder);
{'fraction_non_alphanumeric': 0.1506849315068493, 'fraction_numerical': 0.00228310502283105, 'mean_word_length': 3.9801136363636362, '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': '4306962', 'n_tokens_mistral': 623, 'n_tokens_neox': 591, 'n_words': 145}