/jEdit/tags/jedit-4-0-pre3/bsh/commands/extend.bsh
Unknown | 11 lines | 8 code | 3 blank | 0 comment | 0 complexity | bad0a5dc27b54bac39cc2740af261d5c MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
- bsh.help.extend= "usage: extend( This parent )";
- /*
- Return a new object that is a child of the specified object.
- */
- extend( bsh.This parent ) {
- this.namespace.setParent( parent.namespace );
- return this;
- }