Adding support for "img" data type in

Bundle.add_resource.
This commit is contained in:
fivethirty
2012-04-22 14:37:39 -07:00
parent 753d139325
commit 893cfafd90

View File

@@ -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);
}