UNPKG

sbis3-node-ws

Version:

Модуль позволяет использовать ядро интерфейсного фреймворка sbis3-ws(`core.js`) и модуль работы с данными (`Source.js`) в приложении на nodejs.

23 lines 966 B
define('js!Core/tmpl/js/astModules/data/array', ['js!Core/tmpl/js/helpers/utils', 'js!Core/tmpl/js/helpers/errorHandling'], function arrayLoader(utils, errorHandling) { 'use strict'; return function arrayTag(tag, types, scopeData) { var children, array = [], nameExists, typeFunction, i; if (tag.children) { children = tag.children; for (i = 0; i < children.length; i++) { nameExists = utils.splitWs(children[i].name); if (nameExists) { if (children[i].children) { typeFunction = types[nameExists]; if (typeFunction) { array.push(typeFunction.call(this, types, children[i], scopeData)); } else { errorHandling(children[i].name + ' property can\'t be in the root of ws:array tag', this.filename); } } } } } return array; }; });