Sha256: 0926c91488c7eca28a00773d6c1f2ded04a387c102d687f149e2f06306e9413a

Contents?: true

Size: 1.95 KB

Versions: 1

Compression:

Stored size: 1.95 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1322611693.6566989[:@value{I"
class:EFI"BundledAsset;
FI"id;
F"%a58cd3da2cce087c090da13215e4435bI"logical_path;
FI"medivo/models.js;
FI"
pathname;
FI"c/Users/danielsudol/projects/medivo/medivo_resource/app/assets/javascripts/medivo/models.coffee;
FI"content_type;
FI"application/javascript;
FI"
mtime;
FI"2011-11-21T21:05:50-05:00;
FI"	body;
FI"f
  window.List = (function() {

    List.prototype.min_show_number = 3;

    List.prototype.show_number = List.min_show_number;

    function List(list_data, min_show_number, model, tracker_id) {
      this.list = [];
      if (min_show_number) this.min_show_number = min_show_number;
      this.model = model;
      this.tracker_elem = $("<input id='" + tracker_id + "' type='hidden'>");
      this.setList(list_data);
    }

    List.prototype.getList = function() {
      return this.list.slice(0, this.show_number);
    };

    List.prototype.setList = function(list_info) {
      this.list = [];
      this.show_number = this.min_show_number;
      this.loadList(list_info);
      return this.tracker_elem.change();
    };

    List.prototype.setShowNumber = function(num) {
      this.show_number = num;
      return this.tracker_elem.change();
    };

    List.prototype.loadList = function(list_info) {
      var _this = this;
      if (!list_info) return;
      return $.each(list_info, function(index, data) {
        return _this.list.push(new _this.model(data, index));
      });
    };

    return List;

  })();
;
TI"asset_paths;
F[I"c/Users/danielsudol/projects/medivo/medivo_resource/app/assets/javascripts/medivo/models.coffee;
FI"dependency_paths;
F[{I"	path;
FI"c/Users/danielsudol/projects/medivo/medivo_resource/app/assets/javascripts/medivo/models.coffee;
FI"
mtime;
FIu:	Time
Âê€ :@_zoneI"EST;
T:offsetiþ°¹I"hexdigest;
F"%6f10f16b1ad57833f7daddb2e12d53ffI"
_version;
F"%46dde6621c301f4928e3b34efee9e3b5

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
medivo-0.2.24 spec/dummy/tmp/cache/assets/CEE/250/sprockets%2F96688f33f2f8aa261bf6701c1d6d7575