<commit_before>/// <reference path="../Runtime/Nullstone.js" />
/// <reference path="Expression.js"/>
/// CODE

//#region TemplateBindingExpression
var TemplateBindingExpression = Nullstone.Create("TemplateBindingExpression", Expression, 2);

TemplateBindingExpression.Instance.Init = function (sourcePropd, targetPropd) {
    this.SourceProperty = sourcePropd;
    this.TargetProperty = targetPropd;
};

TemplateBindingExpression.Instance.GetValue = function (propd) {
    var source = this.Target.TemplateOwner;
    var value;
    if (source)
        value = source._GetValue(this.SourceProperty);
    return value; //TODO: Send through TypeConverter
};
TemplateBindingExpression.Instance._OnAttached = function (element) {
    this._OnAttached$Expression(element);

    this.Target = element;
    var listener = this.GetListener();<commit_msg>TemplateBindingExpressions will now send value through global TypeConverter before returning.<commit_after>/// <reference path="../Runtime/Nullstone.js" />
/// <reference path="Expression.js"/>
/// CODE

//#region TemplateBindingExpression
var TemplateBindingExpression = Nullstone.Create("TemplateBindingExpression", Expression, 2);

TemplateBindingExpression.Instance.Init = function (sourcePropd, targetPropd) {
    this.SourceProperty = sourcePropd;
    this.TargetProperty = targetPropd;
};

TemplateBindingExpression.Instance.GetValue = function (propd) {
    var source = this.Target.TemplateOwner;
    var value;
    if (source)
        value = source._GetValue(this.SourceProperty);
    value = Fayde.TypeConverter.ConvertObject(this.TargetProperty, value, this.Target.constructor, true);
    return value;
};
TemplateBindingExpression.Instance._OnAttached = function (element) {
    this._OnAttached$Expression(element);

    this.Target = element;
    var listener = this.GetListener();
{'fraction_non_alphanumeric': 0.11502984264785676, 'fraction_numerical': 0.0010851871947911015, 'mean_word_length': 4.7625, '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': '6443563', 'n_tokens_mistral': 483, 'n_tokens_neox': 476, 'n_words': 105}