UNPKG

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.

15 lines (14 loc) 355 B
define.Class( 'components/widgets/ButtonWidget', function(require) { return { init: function(config) { this.label = config.label; console.error('Button initialized!', config); }, getLabel: function() { return this.label; } }; } );