Open arogachev opened 7 years ago
The alternative is to split each into 2 dedicated properties / methods. With methods it's OK, but as for property - I think it's better to have just one because the purpose is the same. But in case of splitting property it's a BC break. Leaving property as is and splitting just methods does not solve problem for property.
2.1 and a single property, I think...
@samdark It's fixed for method: initScriptFilter()
-> initAssetFilters()
, but for the property reloadableScripts
is still actual. We can't just rename it to reloadableAssets
now because it's a BC breaking change. Please reopen.
I found this issue during writing tests for
yii.js
.After this change - https://github.com/yiisoft/yii2/commit/8809d422dced06337a89ea1533c564eb5628d574 along with JS we additionally handle CSS too, so
reloadableScripts
andinitScriptFilter()
are not appropriate names. I already renamedinitScriptFilter()
toinitAssetFilters()
in the PR containing tests foryii.js
(additionally changedfilter
tofilters
because there are 2 separate filters now set in the same function).But this is not a big deal, because this function is private. However we have related
reloadableScripts
configurable property. This should become something likereloadableAssets
by analogy. However this is a little BC break. Is it OK to apply such change for JS and document in UPGRADE or it only can be done in 2.1?