Sha256: 06113a28497948cb6210e3d4a233f3bd55facd039d30157703c2a9a6a379fd3d

Contents?: true

Size: 1.04 KB

Versions: 8

Compression:

Stored size: 1.04 KB

Contents

(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);

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
revelry_core-0.1.12.4 spec/dummy/tmp/jasmine/assets/models/Test.self.js
revelry_core-0.1.12.2 spec/dummy/tmp/jasmine/assets/models/Test.self.js
revelry_core-0.1.11.6 spec/dummy/tmp/jasmine/assets/models/Test.self.js
revelry_core-0.1.10.1 spec/dummy/tmp/jasmine/assets/models/Test.self.js
revelry_core-0.1.10.0 spec/dummy/tmp/jasmine/assets/models/Test.self.js
revelry_core-0.1.9.1 spec/dummy/tmp/jasmine/assets/models/Test.self.js
revelry_core-0.1.9.0 spec/dummy/tmp/jasmine/assets/models/Test.self.js
revelry_core-0.1.8.0 spec/dummy/tmp/jasmine/assets/models/Test.self.js