Skip to content

Instantly share code, notes, and snippets.

@Draiken
Created November 11, 2011 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Draiken/1358020 to your computer and use it in GitHub Desktop.
Save Draiken/1358020 to your computer and use it in GitHub Desktop.
(function() {
var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) {
for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; }
function ctor() { this.constructor = child; }
ctor.prototype = parent.prototype; //errors_controller.js:5 Uncaught TypeError: Cannot read property 'prototype' of undefined
child.prototype = new ctor;
child.__super__ = parent.prototype;
return child;
};
Collector.Controllers.Errors = (function() {
__extends(Errors, Backbone.Controller);
function Errors() {
Errors.__super__.constructor.apply(this, arguments);
}
Errors.prototype.routes = {
"errors": "index",
"errors/:id": "show"
};
Errors.prototype.index = function() {
return new Collector.Views.ErrorView(Collector.Collection.Errors.fetch());
};
return Errors;
})();
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment