diff --git a/app/code/community/Lesti/Merge/Core/Model/Layout/Update.php b/app/code/community/Lesti/Merge/Core/Model/Layout/Update.php index 12c4a71..b63ec73 100644 --- a/app/code/community/Lesti/Merge/Core/Model/Layout/Update.php +++ b/app/code/community/Lesti/Merge/Core/Model/Layout/Update.php @@ -65,7 +65,7 @@ public function getFileLayoutUpdatesXml($area, $package, $theme, $storeId = null foreach ($items as $item) { $paramsHandle = $handle; - if (in_array((string)$item->{'type'}, ['skin_js', 'js']) && $itemName = $this->_checkMatch($item, $excludeJs)) { + if ((in_array((string)$item->{'type'}, ['skin_js', 'js']) OR $method == 'addJs') && $itemName = $this->_checkMatch($item, $excludeJs)) { $paramsHandle = $itemName; } else if ((string)$item->{'type'} == 'skin_css' && $itemName = $this->_checkMatch($item, $excludeCss)) { $paramsHandle = $itemName;