We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6d4e84 commit fbce271Copy full SHA for fbce271
lib/web/mage/requirejs/mixins.js
@@ -114,15 +114,14 @@ define('mixins', [
114
* @returns {Array} An array of paths to mixins.
115
*/
116
getMixins: function (path) {
117
- var config;
+ var config = module.config() || {}, mixins;
118
119
// fix for when urlArgs is set
120
if (path.indexOf('?') !== -1) {
121
path = path.substring(0, path.indexOf('?'));
122
}
123
-
124
- config = module.config() || {},
125
- mixins = config[path] || {};
+
+ mixins = config[path] || {};
126
127
return Object.keys(mixins).filter(function (mixin) {
128
return mixins[mixin] !== false;
0 commit comments