|
|
@@ -181,9 +181,9 @@ proto.optimize = function(){
|
|
|
proto.addDependencies = function addDependencies(deps){
|
|
|
if(this.path.fields[0] === "CURRENT" || this.path.fields[0] === "ROOT") {
|
|
|
if(this.path.fields.length === 1) {
|
|
|
- deps[""] = 1;
|
|
|
+ deps.needWholeDocument = true;
|
|
|
} else {
|
|
|
- deps[this.path.tail().getPath(false)] = 1;
|
|
|
+ deps.fields[this.path.tail().getPath(false)] = 1;
|
|
|
}
|
|
|
}
|
|
|
};
|