mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Call correct function on error in fetching assets.
Instead of trying (and failing) to call a function on underscore, call the correct `_callback`.
This commit is contained in:
committed by
David Glasser
parent
8c30bfbef4
commit
bf9b67e756
@@ -1291,7 +1291,7 @@ _.extend(JsImage.prototype, {
|
||||
};
|
||||
|
||||
if (!assets || !_.has(assets, assetPath)) {
|
||||
_.callback(new Error("Unknown asset: " + assetPath));
|
||||
_callback(new Error("Unknown asset: " + assetPath));
|
||||
} else {
|
||||
var buffer = assets[assetPath];
|
||||
var result = encoding ? buffer.toString(encoding) : buffer;
|
||||
|
||||
Reference in New Issue
Block a user