Skip to content

Instantly share code, notes, and snippets.

View benbabics's full-sized avatar

Ben Babics benbabics

View GitHub Profile
define [
'BaseController'
],
(BaseController) ->
class NavigationController extends BaseController
initialize: (settings) ->
@benbabics
benbabics / example.js
Created January 25, 2012 13:23 — forked from doubleclickdetroit/example.js
JS Inheritance
function Person(name) {
this.name = name;
}
Person.prototype.getName = function() {
return this.name;
};
function Author(name, books) {
Author.superClass.constructor.call(this, name);
this.books = books;