25 lines
346 B
JavaScript
25 lines
346 B
JavaScript
// Skeleton for basic library functions
|
|
if (! this['plt']) { this['plt'] = {}; }
|
|
(function (plt) {
|
|
var baselib = {};
|
|
plt['baselib'] = baselib;
|
|
|
|
|
|
|
|
|
|
|
|
// Inheritance.
|
|
var heir = function(parentPrototype) {
|
|
var f = function() {}
|
|
f.prototype = parentPrototype;
|
|
return new f();
|
|
};
|
|
|
|
|
|
|
|
|
|
baselib.heir = heir;
|
|
|
|
|
|
})(this['plt']);
|