| @@ 140-147 (lines=8) @@ | ||
| 137 | * |
|
| 138 | * @return void |
|
| 139 | */ |
|
| 140 | public function removeDefaultDOMAttributes() |
|
| 141 | { |
|
| 142 | $defaults = $this->getShaderClassDefaultVars(); |
|
| 143 | foreach ($this as $name => $value) { |
|
| 144 | if (empty($value) || $value === $defaults[$name]) |
|
| 145 | unset($this->$name); |
|
| 146 | } |
|
| 147 | } |
|
| 148 | } |
|
| 149 | ||
| @@ 201-208 (lines=8) @@ | ||
| 198 | * |
|
| 199 | * @return void |
|
| 200 | */ |
|
| 201 | public function removeDefaultDOMAttributes() |
|
| 202 | { |
|
| 203 | $defaults = $this->getShaderClassDefaultVars(); |
|
| 204 | foreach ($this as $name => $value) { |
|
| 205 | if (empty($value) || $value === $defaults[$name]) |
|
| 206 | unset($this->$name); |
|
| 207 | } |
|
| 208 | } |
|
| 209 | } |
|
| 210 | ||