Skip to content

Commit 89f0537

Browse files
committed
Fix styling isssues
1 parent a6b0bf8 commit 89f0537

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

plugins/routers/joint.routers.manhattan.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

src/joint.dia.cell.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)