Skip to content
This repository has been archived by the owner on Mar 6, 2019. It is now read-only.

Commit

Permalink
Fix buffered items issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Hinton committed Dec 15, 2014
1 parent c17e289 commit 4715a1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pourover.js
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,9 @@ var PourOver = (function(){
// A PourOver buffered collection is one that stores some or all of its data as a promise. This is useful in conjunction with a
// large data set in which you don't want to load all the data at page open.
PourOver.BufferedCollection = PourOver.Collection.extend({
buffered_items: {},
initialize: function(){
this.buffered_items = {};
},
stripFutures: function(item){
return _.reduce(item,function(m,v,k){if(typeof(v) != "undefined"){m[k] = v} return m},{});
},
Expand Down

0 comments on commit 4715a1f

Please sign in to comment.