Skip to content

Commit

Permalink
Added subsManager
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaumRystra committed May 22, 2015
1 parent 2f72907 commit ba9b518
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions rpg-docs/Routes/Routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand All @@ -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() {
Expand Down Expand Up @@ -81,7 +81,7 @@ Router.map(function() {
name: "changeLog",
waitOn: function() {
return [
Meteor.subscribe("changeLog"),
subsManager.subscribe("changeLog"),
]
},
data: {
Expand Down
1 change: 1 addition & 0 deletions rpg-docs/lib/constants/subsManager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
subsManager = new SubsManager();
8 changes: 7 additions & 1 deletion rpg-docs/private/changeLogs/changeLogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
});

0 comments on commit ba9b518

Please sign in to comment.