Sha256: c6d22ad37d5d3b9248384f776524ac5fcd0b3d54447406b9d65723a13b9604c8

Contents?: true

Size: 1.56 KB

Versions: 4

Compression:

Stored size: 1.56 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1321397842.76562ял:@value{	I"length:EFiLI"digest;
F"%08d13b0d343ca56a68dbd97e7240242aI"source;
FI"L
  window.ListView = (function() {

    function ListView(list, element_id, template_id) {
      var view;
      this.list = list;
      this.el = $("#" + element_id);
      this.template = Handlebars.compile($("#" + template_id).html());
      if (this.list) this.render();
      view = this;
      this.list.tracker_elem.change(function() {
        return view.render();
      });
    }

    ListView.prototype.render = function() {
      var view;
      view = this;
      view.el.empty();
      return $.each(this.list.getList(), function(index, item) {
        return view.el.append($(view.template(item)));
      });
    };

    return ListView;

  })();
(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; child.prototype = new ctor; child.__super__ = parent.prototype; return child; };

  window.AppointmentListView = (function() {

    __extends(AppointmentListView, ListView);

    function AppointmentListView(list) {
      this.list = list;
      AppointmentListView.__super__.constructor.call(this, this.list, 'appointment_list', 'appointment_item_template');
    }

    return AppointmentListView;

  })();

}).call(this);
;
FI"
_version;
F"%4bbfcd2febc8097fa167a06603e49876

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
medivo-0.2.16 spec/dummy/tmp/cache/assets/C6C/8D0/sprockets%2F2f423a28516973330a94ad121151f3bf
medivo-0.2.15 spec/dummy/tmp/cache/assets/C6C/8D0/sprockets%2F2f423a28516973330a94ad121151f3bf
medivo-0.2.14 spec/dummy/tmp/cache/assets/C6C/8D0/sprockets%2F2f423a28516973330a94ad121151f3bf
medivo-0.2.13 spec/dummy/tmp/cache/assets/C6C/8D0/sprockets%2F2f423a28516973330a94ad121151f3bf