spec/dummy/tmp/cache/assets/CEE/250/sprockets%2F96688f33f2f8aa261bf6701c1d6d7575 in medivo-0.2.7 vs spec/dummy/tmp/cache/assets/CEE/250/sprockets%2F96688f33f2f8aa261bf6701c1d6d7575 in medivo-0.2.8

- old
+ new

@@ -1,55 +1,58 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1321033704.1691771ÓÌ: @value{I" +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1321313731.8536971¢ù: @value{I" class:EFI"BundledAsset; FI"id; -F"%bd48dce0fa245bd8d91a4ba8437af3dfI"logical_path; +F"%9bf5e316f475d91f2d9b1c6c2ac5d6c3I"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-10-30T10:16:36-04:00; FI" body; -FI"H(function() { +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; - } + 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; - } + 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; + })(); -}).call(this); ; TI"asset_paths; F[I"c/Users/danielsudol/projects/medivo/medivo_resource/app/assets/javascripts/medivo/models.coffee; FI"dependency_paths; F[{I" path; \ No newline at end of file