Skip to content

Instantly share code, notes, and snippets.

@bendrucker
Last active August 29, 2015 14:19
Show Gist options
  • Select an option

  • Save bendrucker/21f2068f8b77c04b0065 to your computer and use it in GitHub Desktop.

Select an option

Save bendrucker/21f2068f8b77c04b0065 to your computer and use it in GitHub Desktop.
Extend a Bookshelf model and call a parent method
class Child extends Parent {
parse (attributes) {
super.parse(attributes)
return attributes
}
}
var Child = Parent.extend({
parse: function (attributes) {
Parent.prototype.parse.call(this, attributes)
return attributes
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment