Sha256: 5442f2faf3b09a43325f1f985fbec2fe74b6bfe02ae166b663a56b468238a3e6

Contents?: true

Size: 1.54 KB

Versions: 1

Compression:

Stored size: 1.54 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1322611695.2739279ˆ	:@value{	I"length:EFi9I"digest;
F"%f23ce7a3f6f654de3dbe80b96b5a392eI"source;
FI"9
  window.ListView = (function() {

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

    ListView.prototype.render = function() {
      var _this = this;
      this.el.empty();
      return $.each(this.list.getList(), function(index, item) {
        return _this.el.append($(_this.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"%063d2586404d0fea9241995b4aa02d7b

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
medivo-0.2.24 spec/dummy/tmp/cache/assets/C6C/8D0/sprockets%2F2f423a28516973330a94ad121151f3bf