(function() { var Test, TestCollection, extend = 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; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; Rev.appModel('Test', Test = (function(superClass) { extend(Test, superClass); function Test() { return Test.__super__.constructor.apply(this, arguments); } Test.prototype.url = function() { return "/widgets/" + this.id; }; return Test; })(Rev.Model)); Rev.appObject('Collections.Tests', TestCollection = (function(superClass) { extend(TestCollection, superClass); function TestCollection() { return TestCollection.__super__.constructor.apply(this, arguments); } TestCollection.prototype.model = App.Models.Test; TestCollection.prototype.url = "/widgets"; return TestCollection; })(Rev.Collection)); }).call(this);