spec/dummy/tmp/cache/assets/D9C/F50/sprockets%2F224e78bb9e1c414a2d518a3aaffd6f77 in medivo-0.0.2 vs spec/dummy/tmp/cache/assets/D9C/F50/sprockets%2F224e78bb9e1c414a2d518a3aaffd6f77 in medivo-0.0.3
- old
+ new
@@ -1,8 +1,10 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1318535266.159301 1:@value{ I"length:EFi I"digest;
-F"%d07199196c74a2bc98c3208c4e470a46I"source;
-FI" (function() {
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1318603679.1006091 pa:@value{ I"length:EFi
+I"digest;
+F"%ca7bb499636585e64a07b09cf4011e78I"source;
+FI"
+(function() {
String.prototype.capitalize = function() {
return this.charAt(0).toUpperCase() + this.substring(1).toLowerCase();
};
String.prototype.titleize = function() {
var parts, res;
@@ -27,15 +29,15 @@
if (this.address !== void 0) {
return this.address.replace(/(\s*,\s*$)/g, "").titleize();
}
});
window.Lab = (function() {
+ Lab.prototype.marker = null;
+ Lab.prototype.map_tooltip_template = Handlebars.compile("{{titleize name}}\n{{address_without_comma address}}\n{{titleize city}},{{state}} ");
function Lab(data) {
this.data = data;
}
- Lab.prototype.marker = null;
- Lab.prototype.map_tooltip_template = Handlebars.compile("{{titleize name}}\n{{address_without_comma address}}\n{{titleize city}},{{state}} ");
Lab.prototype.clearMarker = function() {
if (this.marker) {
this.marker.setMap(null);
return this.marker = null;
}
@@ -59,14 +61,22 @@
return new google.maps.MarkerImage("/assets/medivo/lab.png");
};
return Lab;
})();
window.LabList = (function() {
- function LabList(lab_info) {
+ LabList.prototype.show_number = 3;
+ function LabList(lab_info, show_number) {
this.labs = [];
+ if (show_number) {
+ this.show_number = show_number;
+ }
+ console.log(this.show_number);
this.setLabs(lab_info);
}
+ LabList.prototype.getLabs = function() {
+ return this.labs.slice(0, this.show_number);
+ };
LabList.prototype.setLabs = function(lab_info) {
var labs;
this.clearMarkers();
labs = this.labs = [];
return $.each(lab_info, function(index, lab_data) {
@@ -81,6 +91,6 @@
return LabList;
})();
}).call(this);
;
FI"
_version;
-F"%c76943acfdfc5842d3403e43f278db80
+F"%ed6c41d3ca51aa79f091861ad850e323
\ No newline at end of file