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.
18 lines (16 loc) • 468 B
JavaScript
define.Class(
'taglibs/helper-objects/TestHelper',
function(require) {
function TestHelper(context) {
this.context = context;
if (!this.context || !this.context.getAttributes) {
throw new Error('context expected');
}
}
TestHelper.prototype = {
upperCase: function(str) {
return str.toUpperCase();
}
}
return TestHelper;
})