1
- define ( [ "./common" , "require" ] , function ( common , requirejs ) {
1
+ define ( [ "./common" ] , function ( common ) {
2
2
var bundlesList = [ ] ,
3
3
localesList ,
4
4
layerMid ,
@@ -24,7 +24,7 @@ define(["./common", "require"], function (common, requirejs) {
24
24
getAllAvailableLocales = function ( ) {
25
25
localesList = [ ] ;
26
26
bundlesList . forEach ( function ( name ) {
27
- var root = requirejs ( getMasterMid ( name ) ) ;
27
+ var root = require ( getMasterMid ( name ) ) ;
28
28
29
29
eachProp ( root , function ( loc ) {
30
30
if ( root [ loc ] && localesList . indexOf ( loc ) < 0 ) {
@@ -37,7 +37,7 @@ define(["./common", "require"], function (common, requirejs) {
37
37
38
38
normalizeRoot = function ( bundle , name ) {
39
39
bundle . root = ( bundle . root === true || bundle . root === 1 ) ?
40
- requirejs ( name . prefix + "root/" + name . suffix ) : bundle . root ;
40
+ require ( name . prefix + "root/" + name . suffix ) : bundle . root ;
41
41
return bundle ;
42
42
} ,
43
43
@@ -60,13 +60,13 @@ define(["./common", "require"], function (common, requirejs) {
60
60
localizedBundle ;
61
61
62
62
if ( arguments . length === 2 ) {
63
- root = normalizeRoot ( requirejs ( getMasterMid ( name ) ) , name ) ;
63
+ root = normalizeRoot ( require ( getMasterMid ( name ) ) , name ) ;
64
64
}
65
65
66
66
if ( loc !== "root" ) {
67
67
while ( loc && loc !== "root" ) {
68
68
if ( root [ loc ] ) {
69
- localizedBundle = requirejs ( name . prefix + loc + "/" + name . suffix ) ;
69
+ localizedBundle = require ( name . prefix + loc + "/" + name . suffix ) ;
70
70
mixin ( result , localizedBundle ) ;
71
71
}
72
72
loc = common . getParentLocale ( loc ) ;
@@ -102,7 +102,7 @@ define(["./common", "require"], function (common, requirejs) {
102
102
var layersContent = { } ;
103
103
104
104
bundlesList . forEach ( function ( name ) {
105
- var root = normalizeRoot ( requirejs ( getMasterMid ( name ) ) , name ) ,
105
+ var root = normalizeRoot ( require ( getMasterMid ( name ) ) , name ) ,
106
106
pseudoRoots = getPseudoRoots ( root ) ;
107
107
108
108
localesList . forEach ( function ( loc ) {
0 commit comments