You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by jm...@apache.org on 2007/08/13 20:54:58 UTC

svn commit: r565516 - /incubator/xap/trunk/codebase/src/xap/bridges/xap/LabelBridge.js

Author: jmargaris
Date: Mon Aug 13 13:54:57 2007
New Revision: 565516

URL: http://svn.apache.org/viewvc?view=rev&rev=565516
Log:
attributeRemover for "text" attribute

Modified:
    incubator/xap/trunk/codebase/src/xap/bridges/xap/LabelBridge.js

Modified: incubator/xap/trunk/codebase/src/xap/bridges/xap/LabelBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/xap/LabelBridge.js?view=diff&rev=565516&r1=565515&r2=565516
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/bridges/xap/LabelBridge.js (original)
+++ incubator/xap/trunk/codebase/src/xap/bridges/xap/LabelBridge.js Mon Aug 13 13:54:57 2007
@@ -30,6 +30,7 @@
 
 xap.bridges.xap.LabelBridge.prototype.init = function() {
 	xap.bridges.basic.AbstractWidgetBridge.prototype.init.call(this);
+	this.attributeRemovers.text = this.removeTextAttribute;
 }
 
 xap.bridges.xap.LabelBridge.prototype.obtainPeer = function() {
@@ -118,6 +119,10 @@
 
 xap.bridges.xap.LabelBridge.prototype.setTextAttribute = function(text) {
 	this.getPeer().setText(text);
+}
+
+xap.bridges.xap.LabelBridge.prototype.removeTextAttribute = function() {
+	this.getPeer().setText('');
 }
 
 xap.bridges.xap.LabelBridge.prototype.setHorizontalTextToImagePlacementAttribute = function(alignment) {