/[Frey]/trunk/static/lib/Joose/TypeCoercion.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/TypeCoercion.js

Parent Directory Parent Directory | Revision Log Revision Log


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

http://code2.0beta.co.uk/moose/svn/Joose/trunk/lib
1 dpavlin 46 Class("Joose.TypeCoercion", {
2     has: {
3     _from: {
4     isa: Joose.TypeConstraint,
5     is: "rw"
6     },
7     _via: {
8     is: "rw"
9     }
10     },
11    
12     methods: {
13     coerce: function (value) {
14     if(this._from.validateBool(value)) {
15     return this._via(value)
16     }
17     return null
18     }
19     }
20     })

  ViewVC Help
Powered by ViewVC 1.1.26