Hello Nickolay,
I am trying to use the classbrowser example as a simple IDE.
While looking for removeAttribute, removeMethod and removeRole, I
noticed this already exists in the mutability branch.
So I'm upgrading, but I can't get getter/setter generation for
attributes to work.
This is what I do:
Class("visualjoose.classbrowser.Selection", {
have: {
module: {is: 'rw'},
clazz: {is: 'rw'},
category: {is: 'rw'},
element: {is: 'rw'}
}
...
});
I instantiate a selection like this: var sel = new
visualjoose.classbrowser.Selection();
Then 2 things I don't understand happen:
* sel.getModule and sel setModule are undefined
* sel.module contains {is: 'rw'} instead of null
Am I doing something wrong?
There is a good chance I screwed up Joose when inventing my own
loadComponents. I based my loadComponents on the one in 2.0 and used
the Components.JS file in the root of the mutability branch for
knowing which javascript files to generate a script tag for.
Is loadComponents replaced by the grouped dependency loading mechanism
you are working on? I haven't tried it out yet, because I use Rhino on
the server side.
Two other things I changed without being sure I replaced them
correctly are:
*I replaced the "has" attribute builder with the "have" builder.
*Module("aModuleName") doesn't exist anymore? So I don't use it
anymore and instead use Class("aModuleName.aClassName")
Thanks for any help and the cool project that Joose is.
Jan
On Apr 13, 11:51 am, Nickolay Platonov <
nickol...@gmail.com> wrote:
> Hello all,
>
> I'm glad to announce, that mutability branch reached relatively mature and
> stable state.
> You can try it out fromhttp://
joose-js.googlecode.com/svn/branches/mutability/
>
> New features in this branch:
>
> - Roles system implementation, satisfying Traits spec
> (link1<
http://www.iam.unibe.ch/%7Escg/Research/Traits/>,
> link2 <
http://www.iam.unibe.ch/%7Escg/Archive/Papers/Scha03aTraits.pdf>)
> an example:
http://www.extpaste.com/#2186
>
> - mutability (any change in class/role propagates through all
> inheritance/composition relations)
> - built-in singleton symbiont classes
> - various namespace and dependencies handling features (were ported
> from "dependencies
> branch<
http://groups.google.com/group/joose-js/browse_thread/thread/48cfcf01...>