details:
http://www.bx.psu.edu/hg/galaxy/rev/5a4aac327bad
changeset: 2379:5a4aac327bad
user: James Taylor <james(a)jamestaylor.org>
date: Wed Apr 29 10:27:57 2009 -0400
description:
Fix for issubtype in workflow editor, would cause problems drawing connections for types
with no inheritence relationships
1 file(s) affected in this change:
static/scripts/galaxy.workflow_editor.canvas.js
diffs (12 lines):
diff -r e0534b25c282 -r 5a4aac327bad static/scripts/galaxy.workflow_editor.canvas.js
--- a/static/scripts/galaxy.workflow_editor.canvas.js Tue Apr 28 15:32:44 2009 -0400
+++ b/static/scripts/galaxy.workflow_editor.canvas.js Wed Apr 29 10:27:57 2009 -0400
@@ -645,7 +645,7 @@
function issubtype( child, parent ) {
child = ext_to_type[child];
parent = ext_to_type[parent];
- return ( parent in type_to_type[child] );
+ return ( type_to_type[child] ) && ( parent in type_to_type[child] );
};
function populate_datatype_info( data ) {