From e3fe4ff92f88688c7e5bcbe864c6c219ef6f8518 Mon Sep 17 00:00:00 2001 From: Francisco Ryan Tolmasky I Date: Wed, 14 Oct 2009 09:13:58 -0700 Subject: [PATCH] Only sprite images smaller than 32KB. Reviewed by me. --- .../CommonJS/objective-j/lib-js/objective-j/jake/bundletask.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Objective-J/CommonJS/objective-j/lib-js/objective-j/jake/bundletask.js b/Objective-J/CommonJS/objective-j/lib-js/objective-j/jake/bundletask.js index f4901ffe4..ee5fc48f1 100644 --- a/Objective-J/CommonJS/objective-j/lib-js/objective-j/jake/bundletask.js +++ b/Objective-J/CommonJS/objective-j/lib-js/objective-j/jake/bundletask.js @@ -359,7 +359,8 @@ BundleTask.prototype.defineResourceTask = function(aResourcePath, aDestinationPa var extension = FILE.extension(aResourcePath).toLowerCase(), extensionless = aResourcePath.substr(0, aResourcePath.length - extension.length); - if (this.spritesResources() && IMAGE_EXTENSIONS.indexOf(extension) !== -1) + // Don't sprite images larger than 32KB, IE 8 doesn't like it. + if (this.spritesResources() && IMAGE_EXTENSIONS.indexOf(extension) !== -1 && FILE.size(aResourcePath) < 32768) { var spritedDestinationPath = FILE.join(this.buildIntermediatesProductPath(), "Browser" + ".platform", "Resources", FILE.relative(this.resourcesPath(), aDestinationPath));