@@ -7,24 +7,25 @@ var angularCodeUrl = '//code.angularjs.org/';
7
7
8
8
var cdnUrl = googleCdnUrl + versionInfo . cdnVersion ;
9
9
10
- // The "examplesCdnUrl " here applies to the examples when they are opened in plnkr.co.
10
+ // The "examplesDependencyPath " here applies to the examples when they are opened in plnkr.co.
11
11
// The embedded examples instead always include the files from the *default* deployment,
12
12
// to ensure that the source files are always available.
13
13
// The plnkr examples must always use the code.angularjs.org source files.
14
- // We cannot rely on the CDN files here, because they are not deployed during the same time
15
- // as the docs app.
16
- var examplesCdnUrl = versionInfo . currentVersion . isSnapshot ?
17
- ( angularCodeUrl + 'snapshot' ) :
18
- ( angularCodeUrl + ( versionInfo . currentVersion . version || versionInfo . currentVersion . version ) ) ;
14
+ // We cannot rely on the CDN files here, because they are not deployed by the time
15
+ // docs.angularjs.org and code.angularjs.org need them.
16
+ var versionPath = versionInfo . currentVersion . isSnapshot ?
17
+ 'snapshot' :
18
+ ( versionInfo . currentVersion . version || versionInfo . currentVersion . version ) ;
19
+ var examplesDependencyPath = angularCodeUrl + versionPath + '/' ;
19
20
20
21
module . exports = function productionDeployment ( getVersion ) {
21
22
return {
22
23
name : 'production' ,
23
24
examples : {
24
25
commonFiles : {
25
- scripts : [ examplesCdnUrl + '/ angular.min.js' ]
26
+ scripts : [ examplesDependencyPath + 'angular.min.js' ]
26
27
} ,
27
- dependencyPath : examplesCdnUrl
28
+ dependencyPath : examplesDependencyPath
28
29
} ,
29
30
scripts : [
30
31
cdnUrl + '/angular.min.js' ,
0 commit comments