You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by zo...@apache.org on 2010/07/03 14:18:08 UTC

svn commit: r960208 - /incubator/aries/trunk/samples/goat/goat-web/src/main/resources/web/goat/elements/TwistieSection.js

Author: zoe
Date: Sat Jul  3 12:18:07 2010
New Revision: 960208

URL: http://svn.apache.org/viewvc?rev=960208&view=rev
Log:
ARIES-319 Tidying section code

Modified:
    incubator/aries/trunk/samples/goat/goat-web/src/main/resources/web/goat/elements/TwistieSection.js

Modified: incubator/aries/trunk/samples/goat/goat-web/src/main/resources/web/goat/elements/TwistieSection.js
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/samples/goat/goat-web/src/main/resources/web/goat/elements/TwistieSection.js?rev=960208&r1=960207&r2=960208&view=diff
==============================================================================
--- incubator/aries/trunk/samples/goat/goat-web/src/main/resources/web/goat/elements/TwistieSection.js (original)
+++ incubator/aries/trunk/samples/goat/goat-web/src/main/resources/web/goat/elements/TwistieSection.js Sat Jul  3 12:18:07 2010
@@ -82,13 +82,10 @@ dojo.declare("goat.elements.TwistieSecti
 				this.twistieGroup.remove(this.twistieText);
 			}
 
+			//Create here because the component has reset this section's x, y cordinates.
 			this.createTwistie();
 			this.createText();
 
-			if(this.isOpen) {
-				this.removeItemsFromDisplay();
-				this.addItemsToDisplay();
-			}
 			this.component.group.add(this.twistieGroup);
 			console.log("Rendered, x = " + this.x + "y = " + this.y);
 		},
@@ -177,11 +174,6 @@ dojo.declare("goat.elements.TwistieSecti
 		twistieHandler: function() {
     		this.isOpen=!this.isOpen;
 
-    		this.twistieHandleGroup.remove(this.twistieHandle);
-			this.twistieGroup.remove(this.twistieText);
-    		this.createTwistie();
-			this.createText();
-
     		if(this.isOpen){
             	this.addItemsToDisplay();
     		}else{