Skip to content

Commit

Permalink
Fix port compatibility tests, refs #63
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Oct 2, 2013
1 parent 8ef3029 commit 6d36d8b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions build/dataflow.build.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! dataflow.js - v0.0.7 - 2013-10-02 (7:36:38 PM GMT+0200)
/*! dataflow.js - v0.0.7 - 2013-10-02 (8:19:01 PM GMT+0200)
* Copyright (c) 2013 Forrest Oliphant; Licensed MIT, GPL */
// Thanks bobnice http://stackoverflow.com/a/1583281/592125

Expand Down Expand Up @@ -1250,7 +1250,7 @@ CircularBuffer.IndexError= {};
output.view.blur();
return;
}
if (output.canConnect() && (output.type === 'all' || output.type === port.type)) {
if (output.canConnect() && (port.get('type') == 'all' || output.get('type') === 'all' || output.get('type') === port.get('type'))) {
return;
}
output.view.blur();
Expand All @@ -1263,7 +1263,7 @@ CircularBuffer.IndexError= {};
input.view.blur();
return;
}
if (input.canConnect() && (input.type === 'all' || input.type === port.type)) {
if (input.canConnect() && (port.get('type') == 'all' || input.get('type') === 'all' || input.get('type') === port.get('type'))) {
return;
}
input.view.blur();
Expand Down
4 changes: 2 additions & 2 deletions build/dataflow.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/dataflow.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/modules/graph-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@
output.view.blur();
return;
}
if (output.canConnect() && (output.type === 'all' || output.type === port.type)) {
if (output.canConnect() && (port.get('type') == 'all' || output.get('type') === 'all' || output.get('type') === port.get('type'))) {
return;
}
output.view.blur();
Expand All @@ -366,7 +366,7 @@
input.view.blur();
return;
}
if (input.canConnect() && (input.type === 'all' || input.type === port.type)) {
if (input.canConnect() && (port.get('type') == 'all' || input.get('type') === 'all' || input.get('type') === port.get('type'))) {
return;
}
input.view.blur();
Expand Down

0 comments on commit 6d36d8b

Please sign in to comment.