Skip to content

Instantly share code, notes, and snippets.

@canonic-epicure
Created July 10, 2010 16:43
Show Gist options
  • Save canonic-epicure/470848 to your computer and use it in GitHub Desktop.
Save canonic-epicure/470848 to your computer and use it in GitHub Desktop.
Role('JooseX.Attribute.Delegated', {
have : {
handles : null
},
override : {
getAccessorsFor : function (targetClass) {
var methods = this.SUPER(targetClass)
// add delegation methods to `methods`
return methods
},
getAccessorsFrom : function (from) {
var methods = this.SUPER(from)
// add delegation methods to `methods`
return methods
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment