@true-directive/base
Version:
The set of base classes for the TrueDirective Grid
19 lines (18 loc) • 546 B
JavaScript
/**
* Custom framework-independent injection
*/
export function AxInject(name) {
return function (target, pKey, descr) {
// Сохраняем в список в target о необходимости их
// инициализации.
// В конструкторе всё делаем
if (!target['__ax_hta']) {
var a = {};
a[name] = pKey;
target['__ax_hta'] = a;
}
else {
target['__ax_hta'][name] = pKey;
}
};
}