Commit 39b792b 1 parent e4523d0 commit 39b792b Copy full SHA for 39b792b
File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -340,9 +340,9 @@ var CtsParser = {
340
340
341
341
// Handle dependency specs first
342
342
if ( kind == 'css' ) {
343
- f . dependencySpecs . push ( new DependencySpec ( 'css' , h [ 0 ] ) ) ;
343
+ f . dependencySpecs . push ( new DependencySpec ( 'css' , h [ 0 ] , fromLocation ) ) ;
344
344
} else if ( kind == 'cts' ) {
345
- f . dependencySpecs . push ( new DependencySpec ( 'cts' , h [ 0 ] ) ) ;
345
+ f . dependencySpecs . push ( new DependencySpec ( 'cts' , h [ 0 ] , fromLocation ) ) ;
346
346
var url = h [ 0 ] ;
347
347
if ( typeof fromLocation != 'undefined' ) {
348
348
url = Util . Net . fixRelativeUrl ( url , fromLocation ) ;
@@ -355,7 +355,7 @@ var CtsParser = {
355
355
)
356
356
) ;
357
357
} else if ( kind == 'js' ) {
358
- f . dependencySpecs . push ( new DependencySpec ( 'js' , h [ 0 ] ) ) ;
358
+ f . dependencySpecs . push ( new DependencySpec ( 'js' , h [ 0 ] , fromLocation ) ) ;
359
359
} else {
360
360
// Everything else is a TreeSpec
361
361
var treeSpec = new TreeSpec ( kind , h , headerOpts ) ;
Original file line number Diff line number Diff line change 1
1
var Util = require ( 'cts/util' ) ;
2
2
3
- var DependencySpec = function ( kind , url ) {
3
+ var DependencySpec = function ( kind , url , loadedFrom ) {
4
4
this . kind = kind ;
5
5
this . url = url ;
6
+ this . loadedFrom = loadedFrom ;
6
7
this . loaded = false ;
7
8
} ;
8
9
You can’t perform that action at this time.
0 commit comments