Added subsManager

This commit is contained in:
Stefan Zermatten
2015-05-22 14:36:05 +02:00
parent 2f729070b2
commit ba9b518d7e
3 changed files with 11 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ Router.map(function() {
this.route("characterList", {
path: "/characterList",
waitOn: function(){
return Meteor.subscribe("characterList", Meteor.userId());
return subsManager.subscribe("characterList", Meteor.userId());
},
data: {
characters: function(){
@@ -47,7 +47,7 @@ Router.map(function() {
path: "/character/:_id",
waitOn: function(){
return [
Meteor.subscribe("singleCharacter", this.params._id, Meteor.userId()),
subsManager.subscribe("singleCharacter", this.params._id, Meteor.userId()),
];
},
data: function() {
@@ -81,7 +81,7 @@ Router.map(function() {
name: "changeLog",
waitOn: function() {
return [
Meteor.subscribe("changeLog"),
subsManager.subscribe("changeLog"),
]
},
data: {

View File

@@ -0,0 +1 @@
subsManager = new SubsManager();

View File

@@ -114,8 +114,14 @@ ChangeLogs.insert({
"Fixed a bug that caused multiple resistances or vulnerabilities to combine incorrectly",
"Added encumbrance effects that automatically apply when carrying too much load",
"Added a bunch of UI elements to make your character's current load clear",
"Character data is now chached, swapping between two characters should be faster",
"Floating button menus now close as expected when you click a sub-button",
"Base values in attribute summaries no longer look like added values"
],
});
ChangeLogs.insert({
version: "0.5.1",
changes: [
"Characters are now cached and should take much faster to load when swapping between them",
],
});