incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From z..@apache.org
Subject svn commit: r960208 - /incubator/aries/trunk/samples/goat/goat-web/src/main/resources/web/goat/elements/TwistieSection.js
Date Sat, 03 Jul 2010 12:18:08 GMT
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{



Mime
View raw message