PageRenderTime 43ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/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
  1. bsh.help.extend= "usage: extend( This parent )";
  2. /*
  3. Return a new object that is a child of the specified object.
  4. */
  5. extend( bsh.This parent ) {
  6. this.namespace.setParent( parent.namespace );
  7. return this;
  8. }