Skip to content

Commit

Permalink
1.3.0-rc.4; part 2 of tracker fix (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Jul 26, 2015
1 parent 2fe0c4e commit c3db437
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .versions
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ [email protected]
[email protected]
[email protected]
gadicohen:[email protected]
gadicohen:[email protected].3
gadicohen:[email protected].4
gadicohen:[email protected]
[email protected]
[email protected]
Expand All @@ -18,7 +18,7 @@ [email protected]
jag:[email protected]
[email protected]_2
[email protected]
local-test:gadicohen:[email protected].3
local-test:gadicohen:[email protected].4
[email protected]
[email protected]
[email protected]
Expand Down
9 changes: 6 additions & 3 deletions lib/meteor/tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,12 @@ var withNoYieldsAllowed = function (f) {

//#fview
//var nextId = 1;
var nextId = Math.max.apply(Math,
_.map(_.keys(Tracker._computations), function(x) { return parseInt(x); }))
+ 1;
var nextId;
if (Tracker._computations.length)
nextId = 1 + Math.max.apply(Math,
_.map(_.keys(Tracker._computations), function(x) { return parseInt(x); }));
else
nextId = 1;

// computations whose callbacks we should call at flush time
var pendingComputations = [];
Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
name: 'gadicohen:famous-views',
version: '1.3.0-rc.3',
version: '1.3.0-rc.4',
summary: 'Famous, the Meteor Way (with Reactive Blaze Templates/Views)',
git: 'https://github.com/gadicc/meteor-famous-views.git'
});
Expand Down

0 comments on commit c3db437

Please sign in to comment.