Skip to content

Commit fbce271

Browse files
committed
Change to variable declaration for mixins fix
1 parent f6d4e84 commit fbce271

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/web/mage/requirejs/mixins.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,14 @@ define('mixins', [
114114
* @returns {Array} An array of paths to mixins.
115115
*/
116116
getMixins: function (path) {
117-
var config;
117+
var config = module.config() || {}, mixins;
118118

119119
// fix for when urlArgs is set
120120
if (path.indexOf('?') !== -1) {
121121
path = path.substring(0, path.indexOf('?'));
122122
}
123-
124-
config = module.config() || {},
125-
mixins = config[path] || {};
123+
124+
mixins = config[path] || {};
126125

127126
return Object.keys(mixins).filter(function (mixin) {
128127
return mixins[mixin] !== false;

0 commit comments

Comments
 (0)