From 4bf24d02f30abb7f994ec1aba106865bf9967108 Mon Sep 17 00:00:00 2001 From: justinvdm Date: Tue, 14 Apr 2015 20:48:51 +0200 Subject: [PATCH] move makeSource() and makeTarget() calls back to EndpointView.prototype.initialize --- .../js/src/components/plumbing/endpoints.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/go/base/static/js/src/components/plumbing/endpoints.js b/go/base/static/js/src/components/plumbing/endpoints.js index 6d86054a8..46c180c5e 100644 --- a/go/base/static/js/src/components/plumbing/endpoints.js +++ b/go/base/static/js/src/components/plumbing/endpoints.js @@ -49,6 +49,14 @@ // the collection of endpoint views that this endpoint is part of this.collection = options.collection; + + if (this.isSource) { + jsPlumb.makeSource(this.$el, _(this).result('plumbSourceOptions')); + } + + if (this.isTarget) { + jsPlumb.makeTarget(this.$el, _(this).result('plumbTargetOptions')); + } }, isConnected: function() { @@ -65,14 +73,6 @@ render: function() { this.collection.appendToView(this); - - if (this.isSource) { - jsPlumb.makeSource(this.$el, _(this).result('plumbSourceOptions')); - } - - if (this.isTarget) { - jsPlumb.makeTarget(this.$el, _(this).result('plumbTargetOptions')); - } } });