UNPKG

@titanium/turbo

Version:

🚀 Turbo is the awesome framework for turbo charging your Titanium cross-platform native mobile app development!

11 lines (8 loc) • 265 B
exports.parse = function(node, state) { if (!node.getAttribute('src') && state.widgetId) { node.setAttribute('src', state.widgetId); } node.nodeName = 'Require'; node.setAttribute('type', 'widget'); return require('./Alloy.Require').parse(node, state); };