mirror of
https://github.com/samsonjs/elisp.js.git
synced 2026-03-25 09:15:49 +00:00
13 lines
391 B
JavaScript
13 lines
391 B
JavaScript
////
|
|
// Emacs Lisp implementation in JavaScript.
|
|
//
|
|
// Copyright (c) 2009 Sami Samhuri - sami.samhuri@gmail.com
|
|
//
|
|
// Released under the terms of the MIT license. See the included file
|
|
// LICENSE.
|
|
|
|
// Simple inheritance. e.g. ChildObject.extend(ParentObject)
|
|
Function.prototype.extend = function(superclass) {
|
|
this.prototype = new superclass;
|
|
this.prototype.constructor = this;
|
|
};
|