Use splat instead of Array#unshift for attributes.
This commit is contained in:
parent
c528a0d6a7
commit
cfc6749556
|
|
@ -158,11 +158,7 @@ element
|
||||||
attributes = attributes_ { on_attributes(val[0]) };
|
attributes = attributes_ { on_attributes(val[0]) };
|
||||||
|
|
||||||
attributes_
|
attributes_
|
||||||
= attribute attributes_
|
= attribute attributes_ { val[0] ? [val[0], *val[1]] : val[1] }
|
||||||
{
|
|
||||||
val[1].unshift(val[0]) if val[0]
|
|
||||||
val[1]
|
|
||||||
}
|
|
||||||
| _
|
| _
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue