Skip to content

Commit 1c89402

Browse files
committed
Slight change of code style for mixins fix
1 parent 29d7701 commit 1c89402

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/web/mage/requirejs/mixins.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,14 @@ define('mixins', [
115115
*/
116116
getMixins: function (path) {
117117

118-
// fix for when urlArgs is set
119-
if (path.indexOf('?')!=-1) {
120-
path=path.substring(0,path.indexOf('?'));
118+
var config;
119+
120+
// fix for when urlArgs is set
121+
if (path.indexOf('?') !== -1) {
122+
path = path.substring(0, path.indexOf('?'));
121123
}
122124

123-
var config = module.config() || {},
125+
config = module.config() || {},
124126
mixins = config[path] || {};
125127

126128
return Object.keys(mixins).filter(function (mixin) {

0 commit comments

Comments
 (0)