spec/dummy/tmp/cache/assets/D9C/F50/sprockets%2F224e78bb9e1c414a2d518a3aaffd6f77 in medivo-0.2.21 vs spec/dummy/tmp/cache/assets/D9C/F50/sprockets%2F224e78bb9e1c414a2d518a3aaffd6f77 in medivo-0.2.24

- old
+ new

@@ -1,15 +1,18 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1321457843.8867841Á: @value{ I" length:EFiI" digest; -F"%46a68d08f22c8bb73c392e3cd7e9ed22I" source; -FI" +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1322611695.2582421‡ +: @value{ I" length:EFifI" digest; +F"%03a6269cca1351ab8c832429131cd52fI" source; +FI"f window.List = (function() { - List.prototype.show_number = 3; + List.prototype.min_show_number = 3; - function List(list_data, show_number, model, tracker_id) { + List.prototype.show_number = List.min_show_number; + + function List(list_data, min_show_number, model, tracker_id) { this.list = []; - if (show_number) this.show_number = show_number; + 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); } @@ -17,30 +20,29 @@ 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 list, model; + var _this = this; 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 _this.list.push(new _this.model(data, index)); }); }; return List; })(); ; FI" _version; -F"%048d9f5bc3fe06b7528f88d4d5b47c30 +F"%a58cd3da2cce087c090da13215e4435b \ No newline at end of file