Sha256: 54d3b7bea3f82be727321315d25020f943882dbbac5c2f0711bfee09de583dff
Contents?: true
Size: 1.05 KB
Versions: 49
Compression:
Stored size: 1.05 KB
Contents
I"'(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); :ET
Version data entries
49 entries across 44 versions & 1 rubygems