Plato on Github
Report Home
src/mixin/language.js
Maintainability
142.03
Lines of code
17
Difficulty
5.76
Estimated Errors
0.07
Function weight
By Complexity
By SLOC
/** * Mixin language property into objects */ define('lyria/mixin/language', function() { return function(attachedObject, value, eventMap) { Object.defineProperty(attachedObject, 'language', { get: function() { return value; }, set: function(val) { value = val; eventMap.trigger('language:change', value); }, configurable: true, enumarable: true }); }; });