summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2012-08-28 06:15:47 (EDT)
committer Stephan Born2012-08-28 06:15:47 (EDT)
commitb54be4a63ef8ae834709bec164c32aa9860b138d (patch)
tree52ff4ca7bdc6d43490adbd6e3cdf9b26008402f0
parentbc0cd6b4eaf4ba2e8ed2c853fa101c8f74df65c6 (diff)
downloadorg.eclipse.stardust.ui.web-b54be4a63ef8ae834709bec164c32aa9860b138d.zip
org.eclipse.stardust.ui.web-b54be4a63ef8ae834709bec164c32aa9860b138d.tar.gz
org.eclipse.stardust.ui.web-b54be4a63ef8ae834709bec164c32aa9860b138d.tar.bz2
CRNT-25577
1)Added code to remove primitive from current connection remove(). git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@58725 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js b/web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js
index 90af535..7768b80 100644
--- a/web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js
+++ b/web-modeler/src/main/resources/META-INF/xhtml/js/m_connection.js
@@ -1232,7 +1232,7 @@ define(
*/
Connection.prototype.remove = function() {
// TODO add symbol/diagram cleanup
- this.path.remove();
+ this.removePrimitives();
this.removeFlyOutMenu();
this.removeProximitySensor();
m_utils.removeItemFromArray(
@@ -1248,6 +1248,17 @@ define(
};
/**
+ *
+ */
+ Connection.prototype.removePrimitives = function() {
+ var n = 0;
+
+ while (n < this.primitives.length) {
+ this.primitives[n].remove();
+ ++n;
+ }
+ };
+ /**
* sync : Synchronous AJAX call is made, if set(needed in
* scenario like rerouting a connection(Create new connection
* and remove original))