Sha256: 1352433f67867b04393ce5fc449d7cb0b0a33f5736f91157b660ab145a6d6eb6

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1349296003.2313032ͬ:@value{	I"length:EFisI"digest;
F"%660ea8e112a6df7bdc0ecf19a0dab348I"source;
FI"s(function() {
  var RootView;

  RootView = Backbone.View.extend({
    el: "#app",
    initialize: function() {
      return _.bindAll(this, 'render');
    },
    render: function() {
      $(this.el).html(JST["web-app/views/main-view"]);
      return this;
    }
  });

  this.RootView = RootView;

}).call(this);
(function() {
  var MainRouter;

  MainRouter = Backbone.Router.extend({
    initialize: function() {
      window.Root = new window.RootView();
      if (window.Root) {
        return window.Root.render();
      }
    },
    routes: {
      "": "index",
      "/": "index"
    },
    clearView: function() {
      if (this.aView) {
        $(this.aView.el).empty();
        return this.aView = void 0;
      }
    },
    index: function() {
      return this.clearView();
    }
  });

  $(function() {
    return app.registerRouter(MainRouter);
  });

}).call(this);
;
FI"
_version;
F"%26b9a67fe7617496d9e5270cae350627

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iugu-ux-0.7.1 sandbox/tmp/cache/assets/CCA/A20/sprockets%2F18c1c5515ed0fa0331fea30087e57251
iugu-ux-0.7.0 sandbox/tmp/cache/assets/CCA/A20/sprockets%2F18c1c5515ed0fa0331fea30087e57251