#About extend an attempt to create a JavaScript inheritance. Inspired by http://ejohn.org/blog/simple-javascript-inheritance
The usage example:
function Car() {};
Car.prototype = {
name: function() {
return "car";
}
}
var Ford = Car.extend({
name: function() {
return this._super();
}
});
var Focus = Ford.extend({
name: function() {
return this._super();
}
});
var focus = new Focus();
focus.name(); // car