Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kumilingus committed Aug 1, 2018
1 parent aabe616 commit 104e2f1
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 15 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
@@ -1,6 +1,7 @@
1-8-2018 (v2.1.4)
* reconfigure eslint
* add .editorconfig
* dia.Element - fix hasPorts() when no items defined
* dia.LinkView - stop preventing propagation for legacy link tools events

29-6-2018 (v2.1.3)
Expand Down
5 changes: 3 additions & 2 deletions dist/joint.core.js
Expand Up @@ -19350,7 +19350,8 @@ joint.dia.Paper = joint.mvc.View.extend({
*/
hasPorts: function() {

return this.prop('ports/items').length > 0;
var ports = this.prop('ports/items');
return Array.isArray(ports) && ports.length > 0;
},

/**
Expand All @@ -19376,7 +19377,7 @@ joint.dia.Paper = joint.mvc.View.extend({
*/
getPort: function(id) {

return util.cloneDeep(util.toArray(this.prop('ports/items')).find( function(port) {
return util.cloneDeep(util.toArray(this.prop('ports/items')).find(function(port) {
return port.id && port.id === id;
}));
},
Expand Down
6 changes: 3 additions & 3 deletions dist/joint.core.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions dist/joint.js
Expand Up @@ -19350,7 +19350,8 @@ joint.dia.Paper = joint.mvc.View.extend({
*/
hasPorts: function() {

return this.prop('ports/items').length > 0;
var ports = this.prop('ports/items');
return Array.isArray(ports) && ports.length > 0;
},

/**
Expand All @@ -19376,7 +19377,7 @@ joint.dia.Paper = joint.mvc.View.extend({
*/
getPort: function(id) {

return util.cloneDeep(util.toArray(this.prop('ports/items')).find( function(port) {
return util.cloneDeep(util.toArray(this.prop('ports/items')).find(function(port) {
return port.id && port.id === id;
}));
},
Expand Down
6 changes: 3 additions & 3 deletions dist/joint.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions dist/joint.nowrap.js
Expand Up @@ -19312,7 +19312,8 @@ joint.dia.Paper = joint.mvc.View.extend({
*/
hasPorts: function() {

return this.prop('ports/items').length > 0;
var ports = this.prop('ports/items');
return Array.isArray(ports) && ports.length > 0;
},

/**
Expand All @@ -19338,7 +19339,7 @@ joint.dia.Paper = joint.mvc.View.extend({
*/
getPort: function(id) {

return util.cloneDeep(util.toArray(this.prop('ports/items')).find( function(port) {
return util.cloneDeep(util.toArray(this.prop('ports/items')).find(function(port) {
return port.id && port.id === id;
}));
},
Expand Down
6 changes: 3 additions & 3 deletions dist/joint.nowrap.min.js

Large diffs are not rendered by default.

0 comments on commit 104e2f1

Please sign in to comment.