Call addCss & addJs instead of add(), as otherwise it will lose group and loading information

This commit is contained in:
Flavio Copes
2016-01-22 12:59:22 +01:00
parent 77c8458fbf
commit 684503245c

View File

@@ -251,7 +251,7 @@ class Assets
}
return $this;
} elseif (isset($this->collections[$asset])) {
$this->add($this->collections[$asset], $priority, $pipeline, $group);
$this->addCss($this->collections[$asset], $priority, $pipeline, $group);
return $this;
}
@@ -309,7 +309,7 @@ class Assets
}
return $this;
} elseif (isset($this->collections[$asset])) {
$this->add($this->collections[$asset], $priority, $pipeline, $loading, $group);
$this->addJs($this->collections[$asset], $priority, $pipeline, $loading, $group);
return $this;
}