File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -375,17 +375,17 @@ joint.routers.manhattan = (function() {
375375 var excludeAncestors = [ ] ;
376376
377377 var sourceId = link . get ( 'source' ) . id ;
378- if ( sourceId !== undefined ) {
378+ if ( sourceId !== undefined ) {
379379 var source = graph . getCell ( sourceId ) ;
380- if ( source !== undefined ) {
380+ if ( source !== undefined ) {
381381 excludeAncestors = _ . union ( excludeAncestors , _ . map ( source . getAncestors ( ) , 'id' ) ) ;
382382 } ;
383383 }
384384
385385 var targetId = link . get ( 'target' ) . id ;
386- if ( targetId !== undefined ) {
386+ if ( targetId !== undefined ) {
387387 var target = graph . getCell ( targetId ) ;
388- if ( target !== undefined ) {
388+ if ( target !== undefined ) {
389389 excludeAncestors = _ . union ( excludeAncestors , _ . map ( target . getAncestors ( ) , 'id' ) ) ;
390390 }
391391 }
Original file line number Diff line number Diff line change @@ -261,17 +261,17 @@ joint.dia.Cell = Backbone.Model.extend({
261261 return this ;
262262 } ,
263263
264- getAncestors : function ( ) {
264+ getAncestors : function ( ) {
265265
266- var ancestors = [ ] ,
267- parentId = this . get ( 'parent' ) ;
266+ var ancestors = [ ] ;
267+ var parentId = this . get ( 'parent' ) ;
268268
269- if ( this . collection === undefined )
269+ if ( this . collection === undefined )
270270 return ancestors ;
271271
272- while ( parentId !== undefined ) {
273- var parent = _ . find ( this . collection . models , function ( item ) { return item . id === parentId ; } ) ;
274- if ( parent !== undefined ) {
272+ while ( parentId !== undefined ) {
273+ var parent = _ . find ( this . collection . models , function ( item ) { return item . id === parentId ; } ) ;
274+ if ( parent !== undefined ) {
275275 ancestors . push ( parent ) ;
276276 parentId = parent . get ( 'parent' ) ;
277277 } else {
You can’t perform that action at this time.
0 commit comments