Applied JSCS and added JSCS/jsHint config files

This commit is contained in:
Erik Ziegler committed 2016-01-11 11:32:20 +01:00
1 parent a9266608d2
commit 90a16a8059
68 files changed
+24956 -6399

No files matched your search

+1 -2
View File
@@ -10,7 +10,6 @@ Meteor.publish('measurements', function(patientId) {
});
});
// Temporary fix to drop all Collections on server restart
// http://stackoverflow.com/questions/23891631/meteor-how-can-i-drop-all-mongo-collections-and-clear-all-data-on-startup
Meteor.startup(function() {
@@ -21,4 +20,4 @@ Meteor.startup(function() {
object.remove({});
}
}
});
});
@@ -1,11 +1,13 @@
Meteor.methods({
"removeMeasurement": function(id) {
removeMeasurement: function(id) {
Measurements.remove(id);
},
"removeMeasurementsByPatientId": function(patientId) {
Measurements.remove({patientId: patientId});
removeMeasurementsByPatientId: function(patientId) {
Measurements.remove({
patientId: patientId
});
},
"decrementLesionNumbers": function(lesionData) {
decrementLesionNumbers: function(lesionData) {
// Update all Measurements to decrement the lesion numbers for those
// that were created after the current lesion by 1
@@ -41,4 +43,4 @@ Meteor.methods({
multi: true
});
}
});
});