fk1blow
unread,Apr 12, 2011, 6:14:10 PM4/12/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Joose
I don't know how to explain this more clearly but here i go.
Basically i have a class like:
Class('BaseClass', {
has: {
a_attribute: {
init: null
},
b_attribute: {
init: null
}
}
});
all those attribute are for the Class instance.
What i need is a method to add some attributes(i mean attribute, not
static or class attributes) to that class, before i subclass or
instantiate it(and to have access to those attribute within a subclass
using this.attrName) - something like
BaseClass.meta.addAttribute('whatever', { init: 'asdasd' }) but this
method will give me an error - joose.js Mutation of closed property
set: [attributes];
The only method i can figure right now is
BaseClass.prototype.attribute to change the object's attribute(or add
it for that matter)
Regards