Permalink
Browse files

Don’t assume passed value lists should be merged.

Only do this with functions and only for RuleValueList arguments
  • Loading branch information...
1 parent 81fa2ce commit ce4c6d04bd079a98eceb7a9e5e3ed7490c060f6b @sabberworm committed Nov 13, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/Sabberworm/CSS/Value/ValueList.php
@@ -8,9 +8,7 @@
protected $sSeparator;
public function __construct($aComponents = array(), $sSeparator = ',') {
- if ($aComponents instanceof ValueList && $aComponents->getListSeparator() === $sSeparator) {
- $aComponents = $aComponents->getListComponents();
- } else if (!is_array($aComponents)) {
+ if (!is_array($aComponents)) {
$aComponents = array($aComponents);
}
$this->aComponents = $aComponents;

0 comments on commit ce4c6d0

Please sign in to comment.