Here is my code:
TextClass = function () { this._textArr = {}; }; TextClass.prototype = { SetTexts: function (texts) { for (var i = 0; i < te
You have to pass this as context for _.each call like this:
this
_.each
_.each(texts, function (text) { this._textArr[text.Key] = text.Value; }, this);
See the docs for http://underscorejs.org/#each