Update extend() to take optional arguments and Spina options.

Review Request #13523 — Created Feb. 6, 2024 and submitted

Information

Spina
master

Reviewers

The .extend() method for classes no longer requires any arguments. It
had previously required both prototype and static attributes, which
behaved differently from Backbone's version.

It also now takes a third option for Spina options. These are the same
arguments found in the @spina decorator. It's really there for some
unit testing, but can be useful in transitioning some code.

Spina and Review Board unit tests pass.

Tested this in an upcoming change.

Summary ID
Update extend() to take optional arguments and Spina options.
The `.extend()` method for classes no longer requires any arguments. It had previously required both prototype and static attributes, which behaved differently from Backbone's version. It also now takes a third option for Spina options. These are the same arguments found in the `@spina` decorator. It's really there for some unit testing, but can be useful in transitioning some code.
063723fba060a0cad042d6cc08cca714a5693587
david
  1. Ship It!
  2. 
      
maubin
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (820a36f)
Loading...