Joose now supports two new ways to create Joose.Classes
joosify(MyClass)
now turns regular classes into Joose.Clases.
...and you can now use a more JavaScript like Syntax to build Joose.Classes:
Class("Currency", { does: Eq, has: ["value", {is: rw}], methods: { initialize: function (value) { this.setValue(value) }, isEqual: function (cur) { return this.getValue() == cur.getValue() } } })
Very nice, I like it. It feels both Javascripty and Moosey.
- Stevan