summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TStyle.php
diff options
context:
space:
mode:
authorxue <>2006-02-20 23:25:30 +0000
committerxue <>2006-02-20 23:25:30 +0000
commiteecb18e702bc269bbf7fd5b4f8a9ec9e18557031 (patch)
tree57bfa51874585eb7d092254bab627a416adf7e7a /framework/Web/UI/WebControls/TStyle.php
parent8e5627918e7f0c437df1a47af27545132a1c3cbc (diff)
Code cleanup and added some documentation.
Diffstat (limited to 'framework/Web/UI/WebControls/TStyle.php')
-rw-r--r--framework/Web/UI/WebControls/TStyle.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TStyle.php b/framework/Web/UI/WebControls/TStyle.php
index ab7e8568..e1636145 100644
--- a/framework/Web/UI/WebControls/TStyle.php
+++ b/framework/Web/UI/WebControls/TStyle.php
@@ -329,8 +329,7 @@ class TStyle extends TComponent
$writer->addStyleAttribute(trim($arr[0]),trim($arr[1]));
}
}
- foreach($this->_fields as $name=>$value)
- $writer->addStyleAttribute($name,$value);
+ $writer->addStyleAttributes($this->_fields);
if($this->_font!==null)
$this->_font->addAttributesToRender($writer);
if($this->_class!==null)