raptor
Version:
RaptorJS provides an AMD module loader that works in Node, Rhino and the web browser. It also includes various sub-modules to support building optimized web applications.
16 lines (13 loc) • 412 B
JavaScript
define.extend('raptor/widgets/WidgetsContext', function(require, target) {
"use strict";
return {
initWidgets: function() {
var widgetDefs = this.widgets,
widgets = require('raptor/widgets');
widgetDefs.forEach(function(widgetDef) {
widgets.initWidget(widgetDef);
});
this.clearWidgets();
}
};
});