Closed
Bug 534100
Opened 16 years ago
Closed 15 years ago
Property Catch-Alls
Categories
(Mozilla Labs :: Jetpack Prototype, enhancement)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: morganrallen, Unassigned)
Details
Attachments
(1 file, 1 obsolete file)
6.00 KB,
application/javascript
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4
Build Identifier:
Create a new Object Class that has magic Catch All methods that are called on setting or gettings of the objects properties. This allows for things like abstraction of special objects or services. This is more powerful then __definePropery__ because these are called on every property with out advanced knowledge of the names.
Reproducible: Always
Reporter | ||
Comment 1•16 years ago
|
||
Basic use.
jetpack.future.import('util.CatchAll');
var c = new jetpack.util.CatchAll(), data = {};
c.__get = function(v) { return data[v]; };
c.__set = function(v, vv) { return data[v] = vv; };
c.x = 1;
(c.x == data.x) // == true;
Reporter | ||
Comment 2•16 years ago
|
||
Updated CatchAll to add support for all FlexibleWrapper methods. Added second small demo. Shows complex, replicating objects.
Attachment #417014 -
Attachment is obsolete: true
Comment 3•15 years ago
|
||
We will be monitoring all these issues after the rebooted Jetpack code base is released in the first week of March to ensure their causes are not duplicated. Many of the bugs/issues with the prototype version of Jetpack will be made irrelevant given the structure of the new SDK.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•