Added subsManager
This commit is contained in:
@@ -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: {
|
||||
|
||||
1
rpg-docs/lib/constants/subsManager.js
Normal file
1
rpg-docs/lib/constants/subsManager.js
Normal file
@@ -0,0 +1 @@
|
||||
subsManager = new SubsManager();
|
||||
@@ -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",
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user