Skip to content

Commit

Permalink
v1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gevorgmansuryan committed Oct 13, 2017
1 parent 1b3a48e commit 5b780fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/LazyBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ class LazyBlock extends Widget
public $effect = self::EFFECT_SLIDE_UP;
public $delay = 0;
public $speed = 600;
public $options;
public $options = [
'class' => []
];

public function init()
{
Expand All @@ -33,7 +35,7 @@ public function init()
public function run()
{
$this->options['id'] = $this->id;
$this->options['class'] = (array)$this->options['class'];
$this->options['class'] = ArrayHelper::toArray(ArrayHelper::getValue($this->options, 'class', []));
if ($this->effect) {
$this->options = ArrayHelper::merge(
$this->options, [
Expand Down

0 comments on commit 5b780fd

Please sign in to comment.