rxjs-marbles
Advanced tools
Comparing version 2.3.2 to 2.3.3
@@ -0,1 +1,8 @@ | ||
<a name="2.3.3"></a> | ||
## [2.3.3](https://github.com/cartant/rxjs-marbles/compare/v2.3.2...v2.3.3) (2018-03-29) | ||
### Bug fixes | ||
* **bind**: Ensure teardown always happens for each `bind`. ([19caa51](https://github.com/cartant/rxjs-marbles/commit/19caa51)) | ||
<a name="2.3.2"></a> | ||
@@ -2,0 +9,0 @@ ## [2.3.2](https://github.com/cartant/rxjs-marbles/compare/v2.3.1...v2.3.2) (2018-03-05) |
@@ -86,20 +86,24 @@ import { animationFrame } from "rxjs/scheduler/animationFrame"; | ||
Context.prototype.teardown = function () { | ||
if (this.autoFlush) { | ||
this.scheduler.flush(); | ||
try { | ||
if (this.autoFlush) { | ||
this.scheduler.flush(); | ||
} | ||
} | ||
this.bindings_.forEach(function (_a) { | ||
var instance = _a.instance, now = _a.now, schedule = _a.schedule; | ||
if (now) { | ||
instance.now = now; | ||
} | ||
else { | ||
delete instance.now; | ||
} | ||
if (schedule) { | ||
instance.schedule = schedule; | ||
} | ||
else { | ||
delete instance.schedule; | ||
} | ||
}); | ||
finally { | ||
this.bindings_.forEach(function (_a) { | ||
var instance = _a.instance, now = _a.now, schedule = _a.schedule; | ||
if (now) { | ||
instance.now = now; | ||
} | ||
else { | ||
delete instance.now; | ||
} | ||
if (schedule) { | ||
instance.schedule = schedule; | ||
} | ||
else { | ||
delete instance.schedule; | ||
} | ||
}); | ||
} | ||
}; | ||
@@ -106,0 +110,0 @@ Context.prototype.time = function (marbles) { |
@@ -14,5 +14,9 @@ import { TestScheduler } from "rxjs/testing/TestScheduler"; | ||
var context = new Context(scheduler); | ||
var result = func.apply(void 0, [context, first].concat(rest)); | ||
context.teardown(); | ||
return result; | ||
try { | ||
var result = func.apply(void 0, [context, first].concat(rest)); | ||
return result; | ||
} | ||
finally { | ||
context.teardown(); | ||
} | ||
}; | ||
@@ -27,6 +31,10 @@ } | ||
var context = new Context(scheduler); | ||
var result = func.apply(void 0, [context].concat(rest)); | ||
context.teardown(); | ||
return result; | ||
try { | ||
var result = func.apply(void 0, [context].concat(rest)); | ||
return result; | ||
} | ||
finally { | ||
context.teardown(); | ||
} | ||
}; | ||
} |
@@ -43,4 +43,4 @@ { | ||
"unpkg": "./bundles/rxjs-marbles.umd.js", | ||
"version": "2.3.2", | ||
"version": "2.3.3", | ||
"ava": {} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
492012
56631
13019