From 45013b9f84d78fc0d2f2d17a25851b71b0d201e7 Mon Sep 17 00:00:00 2001 From: Adam tegen Date: Tue, 17 Feb 2015 11:18:46 -0600 Subject: [PATCH] Fixed a bug with the timeToLive option in Image.js --- lib/RAL/Image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/RAL/Image.js b/lib/RAL/Image.js index ed641e4..399a288 100644 --- a/lib/RAL/Image.js +++ b/lib/RAL/Image.js @@ -30,7 +30,7 @@ RAL.RemoteImage = function(options) { } // if there is a TTL use that instead of the default - if(this.ignoreCacheHeaders && typeof this.timeToLive !== "undefined") { + if(this.ignoreCacheHeaders && typeof options.timeToLive !== "undefined") { this.timeToLive = options.timeToLive; }