Opened 6 years ago
Closed 6 years ago
#147 closed change (fixed)
[Typed objects] Implement object types
Reported by: | trev | Assignee: | trev |
---|---|---|---|
Priority: | P2 | Milestone: | |
Module: | Core | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #145 | Platform: | |
Ready: | yes | Confidential: | no |
Tester: | Verified working: | no | |
Review URL(s): |
Description (last modified by trev)
Background
See #145.
What to change
new ObjectType() should be used to create a new type. First parameter defines type properties and methods, e.g. {x: uint8, y: float32, m: function(){}}. Second parameter defines type metadata, for now only the constructor property is important. The returned type is a function, it can be called to create an object instance. Any parameters will be passed to the constructor function.
Change History (3)
comment:1 Changed 6 years ago by trev
- Status changed from new to assigned
comment:2 Changed 6 years ago by trev
comment:3 Changed 6 years ago by trev
- Resolution set to fixed
- Status changed from reviewing to closed
Note: See
TracTickets for help on using
tickets.
Fixed: https://hg.adblockplus.org/adblockpluscore/rev/3697c9f2bdd0