Skip to content

Commit 2163755

Browse files
Fixed a typo
1 parent 4cf4848 commit 2163755

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

dist/ref-parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ $Ref.prototype.setValue = function(value, options) {
12081208
this.value = value;
12091209

12101210
// Extend the cache expiration
1211-
var cacheDuration = options.cache[this.type];
1211+
var cacheDuration = options.cache[this.pathType];
12121212
if (cacheDuration > 0) {
12131213
var expires = Date.now() + (cacheDuration * 1000);
12141214
this.expires = new Date(expires);

0 commit comments

Comments
 (0)