Skip to content

Instantly share code, notes, and snippets.

@canonic-epicure
Created August 4, 2010 15:11
Show Gist options
  • Save canonic-epicure/508278 to your computer and use it in GitHub Desktop.
Save canonic-epicure/508278 to your computer and use it in GitHub Desktop.
Class('Custom.Property', {
isa : Joose.Managed.Property,
does : Some.Role
// wrong, as Custom.Property will have the same meta-class as Joose.Managed.Property
// which is on 1st level and don't know what Role is
})
Class('Custom.Property', {
meta : Joose.Meta.Class,
isa : Joose.Managed.Property,
does : Some.Role // ok now, as we specified the meta-class
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment