Skip to content

Commit

Permalink
Fixes filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Solomon committed Oct 29, 2021
1 parent 4ce3fe6 commit 5182165
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.5.8] - 2021-10-29

### Fixed

- returns correct value from filter in `Interpret.js`.

## [0.5.7] - 2021-10-27

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "purescript-wags",
"version": "0.5.7",
"version": "0.5.8",
"description": "Web Audio Graphs as a Stream",
"scripts": {
"build": "spago build",
Expand Down
4 changes: 2 additions & 2 deletions src/WAGS/Interpret.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ var disconnectXFromY = function (calledExternally) {
stateX.units[x].main.disconnect(stateY.units[y].main);
stateX.units[x].outgoing = stateX.units[x].outgoing.filter(
function (i) {
!(i.unit === y && i.state === stateY);
return !(i.unit === y && i.state === stateY);
}
);
stateY.units[y].incoming = stateY.units[y].incoming.filter(
function (i) {
!(i.unit === x && i.state === stateX);
return !(i.unit === x && i.state === stateX);
}
);
if (stateY.units[y].se) {
Expand Down

0 comments on commit 5182165

Please sign in to comment.