diff --git a/boot/boot.js b/boot/boot.js index 8d2d877c14..7598a15e7b 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -410,7 +410,7 @@ Given an extension, get the correct encoding for that file. defaults to utf8 */ $tw.utils.getTypeEncoding = function(ext) { - var extensionInfo = $tw.util.getFileExtensionInfo(ext), + var extensionInfo = $tw.utils.getFileExtensionInfo(ext), type = extensionInfo ? extensionInfo.type : null, typeInfo = type ? $tw.config.contentTypeInfo[type] : null; return typeInfo ? typeInfo.encoding : "utf8";