Sha256: df3e4f6fb291b06b956f652a326179426fe4fd8ba2e08e9a4fcd3c3801d180c6

Contents?: true

Size: 1.25 KB

Versions: 2

Compression:

Stored size: 1.25 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1321443492.242053}Ì:@value{	I"length:EFiI"digest;
F"%46a68d08f22c8bb73c392e3cd7e9ed22I"source;
FI"
  window.List = (function() {

    List.prototype.show_number = 3;

    function List(list_data, show_number, model, tracker_id) {
      this.list = [];
      if (show_number) this.show_number = 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.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 list, model;
      if (!list_info) return;
      list = this.list;
      model = this.model;
      return $.each(list_info, function(index, data) {
        return list.push(new model(data, index));
      });
    };

    return List;

  })();
;
FI"
_version;
F"%add9e989e4e68fc4eff4adaffa2c319e

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
medivo-0.2.18 spec/dummy/tmp/cache/assets/D9C/F50/sprockets%2F224e78bb9e1c414a2d518a3aaffd6f77
medivo-0.2.17 spec/dummy/tmp/cache/assets/D9C/F50/sprockets%2F224e78bb9e1c414a2d518a3aaffd6f77