Skip to content

Commit

Permalink
Optimized getClientId()
Browse files Browse the repository at this point in the history
  • Loading branch information
daixianceng committed May 5, 2016
1 parent 7f3c0b0 commit c9f6784
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ECharts.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,8 @@ private function quote($string)
*/
public function getClientId()
{
$id = $this->options['id'];

if ($this->_clientId === null) {
$id = $this->options['id'];
$this->_clientId = "echarts_{$id}";
}

Expand Down

0 comments on commit c9f6784

Please sign in to comment.