/[Frey]/trunk/static/lib/Joose/Prototype.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/static/lib/Joose/Prototype.js

Parent Directory Parent Directory | Revision Log Revision Log


Revision 46 - (hide annotations)
Wed Jul 2 10:28:49 2008 UTC (16 years ago) by dpavlin
File MIME type: application/javascript
File size: 1137 byte(s)
added upstream Joose r4755

http://code2.0beta.co.uk/moose/svn/Joose/trunk/lib
1 dpavlin 46
2    
3     Class("Joose.Prototype", {
4     isa: Joose.Class,
5     override: {
6     initializer: function () {
7     var init = this.SUPER()
8     return function () {
9     init.apply(this, arguments)
10     var meta = this.meta;
11     this.meta = new Joose.PrototypeLazyMetaObjectProxy();
12     this.meta.metaObject = meta
13     this.meta.object = this;
14     }
15     }
16     }
17     })
18    
19    
20     Class("Joose.PrototypeLazyMetaObjectProxy", {
21     has: {
22     metaObject: {
23     is: rw,
24     isa: Joose.Class,
25     handles: "*",
26     handleWith: function (name) {
27     return function () {
28     // when we are called, turn the objects meta object into the original, detach yourself
29     // and call the original methods
30     var o = this.object;
31     o.meta = this.metaObject;
32     o.detach()
33     o.meta[name].apply(o.meta, arguments)
34     }
35     }
36     },
37     object: {
38     is: rw
39     }
40     }
41     })
42    
43     Joose.bootstrap3()

  ViewVC Help
Powered by ViewVC 1.1.26