define('SystemVersionResponse', function() {
function SystemVersionResponse(input) {
this.errorMessage = String.fromCharCode.apply(String, input.rsp.rsp.errorMessage.item).replace(/\0/g,'');
this.errorNumber = input.rsp.rsp.errorMessage.errorNumber;
}
SystemVersionResponse.prototype.getErrorCode = function() {
return errorNumber;
};
SystemVersionResponse.prototype.getErrorMessage = function() {
return errorMessage;
};
SystemVersionResponse.prototype.getRevision = function() {
return revision;
};
return SystemVersionResponse;
});
I get the syntax error:
ReferenceError: define is not defined
What package am I missing?
Is this the correct way to export a constructor?