mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
18 lines
No EOL
364 B
JavaScript
18 lines
No EOL
364 B
JavaScript
define([
|
|
"Lib/Utilities/Exception"
|
|
],
|
|
|
|
function (Exception) {
|
|
|
|
function Abstract() {
|
|
}
|
|
|
|
Abstract.prototype.addMethod = function(methodName, params) {
|
|
this.prototype[methodName] = function() {
|
|
throw new Exception("Abstract method", this, methodName + "(" + params.join(', ') + ") not overwritten.");
|
|
}
|
|
}
|
|
|
|
return Abstract;
|
|
|
|
}); |