Skip to content

Commit

Permalink
chore(package): release new version
Browse files Browse the repository at this point in the history
  • Loading branch information
staltz committed Jul 6, 2016
1 parent 632d9af commit 3ace93b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 15 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="5.1.3"></a>
## [5.1.3](https://github.com/staltz/xstream/compare/v5.1.2...v5.1.3) (2016-07-06)


### Bug Fixes

* **remember:** remembers also explicitly sent events ([1cdef65](https://github.com/staltz/xstream/commit/1cdef65)), closes [#69](https://github.com/staltz/xstream/issues/69)



<a name="5.1.2"></a>
## [5.1.2](https://github.com/staltz/xstream/compare/v5.1.1...v5.1.2) (2016-07-06)

Expand Down
31 changes: 18 additions & 13 deletions dist/xstream.js
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,23 @@ var FilterMapOperator = (function (_super) {
return FilterMapOperator;
}(MapOperator));
exports.FilterMapOperator = FilterMapOperator;
var RememberOperator = (function () {
function RememberOperator(ins) {
this.ins = ins;
this.type = 'remember';
this.out = exports.emptyIL;
}
RememberOperator.prototype._start = function (out) {
this.out = out;
this.ins._add(out);
};
RememberOperator.prototype._stop = function () {
this.ins._remove(this.out);
this.out = null;
};
return RememberOperator;
}());
exports.RememberOperator = RememberOperator;
var ReplaceErrorOperator = (function () {
function ReplaceErrorOperator(fn, ins) {
this.fn = fn;
Expand Down Expand Up @@ -1103,19 +1120,7 @@ var Stream = (function () {
};

Stream.prototype.remember = function () {
var _this = this;
return new MemoryStream({
_start: function (il) {
var p = _this._prod;
if (p)
p._start(il);
},
_stop: function () {
var p = _this._prod;
if (p)
p._stop();
},
});
return new MemoryStream(new RememberOperator(this));
};

Stream.prototype.debug = function (labelOrSpy) {
Expand Down
Loading

0 comments on commit 3ace93b

Please sign in to comment.