Merge pull request #12584 from mikehaertl/12580-strict-yii-js

Issue #12580 Make yii.js comply to js strict mode
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
Dmitry Naumenko
2016-09-24 18:33:02 +03:00
committed by GitHub
gitea-unlock(16/)
octicon-diff(16/tw-mr-1) 2 changed files with 2 additions and 1 deletions

1
framework/CHANGELOG.md
View File

@@ -79,6 +79,7 @@ Yii Framework 2 Change Log
- Enh #12440: Added `yii\base\Event::offAll()` method allowing clear all registered class-level event handlers (klimov-paul)
- Enh: Method `yii\console\controllers\AssetController::getAssetManager()` automatically enables `yii\web\AssetManager::forceCopy` in case it is not explicitly specified (pana1990, klimov-paul)
- Enh #12580: Make `yii.js` comply with strict and non-strict javascript mode to allow concatenation with external code (mikehaertl)
2.0.9 July 11, 2016
-------------------

2
framework/assets/yii.js
View File

@@ -41,7 +41,7 @@
*
* You must call "yii.initModule()" once for the root module of all your modules.
*/
yii = (function ($) {
window.yii = (function ($) {
var pub = {
/**
* List of JS or CSS URLs that can be loaded multiple times via AJAX requests. Each script can be represented