Skip to content
Snippets Groups Projects
  • rhenck's avatar
    f28b0678
    Rework class initialization · f28b0678
    rhenck authored
    - Elements initialize their fields explicitly and not with
      Object.assign, since Object.assign also assigns
      (and therefore overwrites) parent fields.
    - IDService is no longer an Angular service but a basic singleton. This
      allows to use it in classes.
    - The IDManager can be optionally passed to unit and element
      constructors. When present the elements check and fix their given ID
      when created.
      This way elements can be created without depending on the external
      IDManager but also with the dependency.
    - ElementFactory is no longer used to create elements. Those are now
      either created directly via 'new' or via the Section, which knows the
      different element types.
    f28b0678
    History
    Rework class initialization
    rhenck authored
    - Elements initialize their fields explicitly and not with
      Object.assign, since Object.assign also assigns
      (and therefore overwrites) parent fields.
    - IDService is no longer an Angular service but a basic singleton. This
      allows to use it in classes.
    - The IDManager can be optionally passed to unit and element
      constructors. When present the elements check and fix their given ID
      when created.
      This way elements can be created without depending on the external
      IDManager but also with the dependency.
    - ElementFactory is no longer used to create elements. Those are now
      either created directly via 'new' or via the Section, which knows the
      different element types.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.