Cannot call method 'T' of undefined
my code [viewname].html <%= t('lanng.key') %> -- error messge : Cannot call method 'T' of undefined
controller-extenstions.js
Controller.prototype.t = function() { if (!this._t) { this._t = this.compound.T(); this._t.locale = this.app.settings.defaultLocale || 'en'; this._T = this.compound.T; } ... };
problem : this == controller (at invoke scope)
What version of compound? I've already fixed it today.
Thank you for your quick reply but it is newest version ([email protected])
Fixed. But need to come up with better idea how to solve this problem. Keeping issue open to not forget about it.
Proper fix found.