/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

  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. }