summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TControl.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/TControl.php')
-rw-r--r--framework/Web/UI/TControl.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php
index e568df65..ce343925 100644
--- a/framework/Web/UI/TControl.php
+++ b/framework/Web/UI/TControl.php
@@ -576,11 +576,14 @@ class TControl extends TComponent
/**
* Removes the named attribute.
* @param string the name of the attribute to be removed.
+ * @return string attribute value removed, empty string if attribute does not exist.
*/
public function removeAttribute($name)
{
if($attributes=$this->getViewState('Attributes',null))
- $attributes->remove($name);
+ return $attributes->remove($name);
+ else
+ return '';
}
/**