This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
Demos/ | Wed Dec 24 15:29:09 -0800 2008 | |
| |
Docs/ | Wed Dec 24 15:29:09 -0800 2008 | |
| |
LICENSE | Fri Sep 05 19:14:27 -0700 2008 | |
| |
README.md | Wed Dec 24 17:09:23 -0800 2008 | |
| |
Source/ | Wed Dec 24 17:00:32 -0800 2008 | |
| |
Specs/ | Wed Dec 24 17:09:23 -0800 2008 | |
| |
scripts.json | Wed Dec 24 15:29:09 -0800 2008 |
README.md
SubtleTransformer
Huh?
Use this thing if you want to be able to call get and set methods on an object but always be sure to run the value through a function first.
Why would I want to do that?
Imagine you have a SPAN element. You want that element to be money formatted number. You can wrap your variable in a SubtleTransformer.Currency and then every time you do myElement.set('value', 1234.5) it'll run the number through a function that'll format it as currency. Then any time you call myElement.get('value') it'll run the value through another function that'll convert it back to a float!
Imagine the aswome!







