Opened on 03/13/2014 at 05:01:00 PM
Closed on 04/22/2014 at 07:20:12 PM
#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.
Attachments (0)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Fixed: https://hg.adblockplus.org/adblockpluscore/rev/3697c9f2bdd0