From 893cfafd90a403acf6caf43576636dd65fbfb67b Mon Sep 17 00:00:00 2001 From: fivethirty Date: Sun, 22 Apr 2012 14:37:39 -0700 Subject: [PATCH] Adding support for "img" data type in Bundle.add_resource. --- app/lib/bundler.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/lib/bundler.js b/app/lib/bundler.js index 83ce810ce7..de4ee8bc20 100644 --- a/app/lib/bundler.js +++ b/app/lib/bundler.js @@ -297,6 +297,8 @@ var Bundle = function () { if (w !== "client") throw new Error("HTML segments can only go to the client"); self[options.type].push(data); + } else if (options.type === "img") { + self.files.client[options.path] = data; } else { throw new Error("Unknown type " + options.type); }