public
Description: MVC Style Data Transformer plugin for MooTools
Homepage:
Clone URL: git://github.com/subtleGradient/mootools-mvc-transformer.git
name age message
directory Demos/ Wed Dec 24 15:29:09 -0800 2008 Started SubtleTransformer [subtleGradient]
directory Docs/ Wed Dec 24 15:29:09 -0800 2008 Started SubtleTransformer [subtleGradient]
file LICENSE Fri Sep 05 19:14:27 -0700 2008 Basics [subtleGradient]
file README.md Wed Dec 24 17:09:23 -0800 2008 READ ME! [subtleGradient]
directory Source/ Wed Dec 24 17:00:32 -0800 2008 passing specs [subtleGradient]
directory Specs/ Wed Dec 24 17:09:23 -0800 2008 READ ME! [subtleGradient]
file scripts.json Wed Dec 24 15:29:09 -0800 2008 Started SubtleTransformer [subtleGradient]
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!