Change character reference to be reactive based on the active, undestroyed template

This commit is contained in:
Connor Petersen
2015-10-08 23:05:57 -07:00
parent d79a808c81
commit c9d71cad52

View File

@@ -24,7 +24,7 @@ Template.carryCapacityBar.onCreated(function() {
var self = this;
self.carriedFraction = new ReactiveVar(0);
self.autorun(function() {
self.carriedFraction.set(getFractionCarried(self.data));
self.carriedFraction.set(getFractionCarried(Template.currentData()));
});
});