Skip to content

Instantly share code, notes, and snippets.

@FireyFly
Created June 8, 2012 21:25
Show Gist options
  • Save FireyFly/2898182 to your computer and use it in GitHub Desktop.
Save FireyFly/2898182 to your computer and use it in GitHub Desktop.
Using object extension to hide/override properties
var Foo = Base.extend({
init: function() {
// ...
Base.init.call(this)
}
})
// ...where Base.extend is defined as in https://gist.github.com/2000920
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment