spec/dummy/tmp/cache/assets/CEC/EF0/sprockets%2F4b24a74018f693c06088bd52f8cc9f86 in medivo-0.2.7 vs spec/dummy/tmp/cache/assets/CEC/EF0/sprockets%2F4b24a74018f693c06088bd52f8cc9f86 in medivo-0.2.8
- old
+ new
@@ -1,122 +1,135 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1321033704.1703849 ç–:@value{I"
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1321313731.8569391 Ø:@value{I"
class:EFI"BundledAsset;
FI"id;
-F"%cf8de2cad33640c45305c1a43517c401I"logical_path;
+F"%f10957c21cac4a8337b9fa733bd73c25I"logical_path;
FI"medivo/lab_list/models.js;
FI"
pathname;
FI"l/Users/danielsudol/projects/medivo/medivo_resource/app/assets/javascripts/medivo/lab_list/models.coffee;
FI"content_type;
FI"application/javascript;
FI"
mtime;
FI"2011-10-30T10:16:36-04:00;
FI" body;
-FI"-
(function() {
- var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) {
- for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; }
- function ctor() { this.constructor = child; }
- ctor.prototype = parent.prototype;
- child.prototype = new ctor;
- child.__super__ = parent.prototype;
- return child;
- };
+FI"·(function() {
+ var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; child.__super__ = parent.prototype; return child; };
+
window.Lab = (function() {
var index, marker, point;
+
Lab.prototype.map_tooltip_template = Handlebars.compile("{{titleize name}}\n{{address_without_comma address}}\n{{titleize city}},{{state}} ");
+
index = null;
+
marker = null;
+
point = null;
+
function Lab(data) {
this.data = data;
}
+
Lab.prototype.clearMarker = function() {
if (this.marker) {
this.marker.setMap(null);
return this.marker = null;
}
};
+
Lab.prototype.setMarker = function(map, markerBounds, index) {
this.point = new google.maps.LatLng(this.data.lat, this.data.lng);
this.marker = this.makeMarker(map, index);
- if (markerBounds) {
- return markerBounds.extend(this.point);
- }
+ if (markerBounds) return markerBounds.extend(this.point);
};
+
Lab.prototype.makeMarker = function(map, index) {
return new google.maps.Marker({
position: this.point,
map: map,
title: this.map_tooltip_template(this.data),
icon: this.makeIcon(index)
});
};
+
Lab.prototype.makeIcon = function() {
return "/assets/medivo/lab.png";
};
+
Lab.prototype.icon = function() {
- if (this.marker) {
- return this.marker.icon;
- }
+ if (this.marker) return this.marker.icon;
return this.makeIcon();
};
+
return Lab;
+
})();
+
window.OrderedLab = (function() {
+
__extends(OrderedLab, Lab);
+
function OrderedLab(data, index) {
this.data = data;
this.index = index;
}
+
OrderedLab.prototype.makeIcon = function() {
- if (!window.isNumber(this.index)) {
- OrderedLab.__super__.makeIcon.call(this);
- }
+ if (!window.isNumber(this.index)) OrderedLab.__super__.makeIcon.call(this);
return "/assets/medivo/marker" + this.makeLetter(this.index) + ".png";
};
+
OrderedLab.prototype.makeLetter = function(number) {
- if (number >= 0 && number <= 26) {
- return String.fromCharCode(number + 65);
- }
+ if (number >= 0 && number <= 26) return String.fromCharCode(number + 65);
return '';
};
+
OrderedLab.prototype.icon = function() {
- if (this.marker) {
- return this.marker.icon;
- }
+ if (this.marker) return this.marker.icon;
return this.makeIcon(this.index);
};
+
return OrderedLab;
+
})();
+
window.LabList = (function() {
+
__extends(LabList, List);
+
function LabList(lab_info, show_number, model, tracker_id) {
- if (!model) {
- model = Lab;
- }
- if (!tracker_id) {
- tracker_id = 'lab_list_tracker';
- }
+ if (!model) model = Lab;
+ if (!tracker_id) tracker_id = 'lab_list_tracker';
LabList.__super__.constructor.call(this, lab_info, show_number, model, tracker_id);
}
+
LabList.prototype.setList = function(lab_info) {
this.clearMarkers();
return LabList.__super__.setList.call(this, lab_info);
};
+
LabList.prototype.clearMarkers = function() {
return $.each(this.list, function(index, lab) {
return lab.clearMarker();
});
};
+
return LabList;
+
})();
+
window.OrderedLabList = (function() {
+
__extends(OrderedLabList, LabList);
+
function OrderedLabList(lab_info, show_number) {
OrderedLabList.__super__.constructor.call(this, lab_info, show_number, OrderedLab, 'ordered_lab_list_tracker');
}
+
return OrderedLabList;
+
})();
+
}).call(this);
;
TI"asset_paths;
F[I"c/Users/danielsudol/projects/medivo/medivo_resource/app/assets/javascripts/medivo/models.coffee;
FI"l/Users/danielsudol/projects/medivo/medivo_resource/app/assets/javascripts/medivo/lab_list/models.coffee;
\ No newline at end of file