Skip to content
Browse files

Don't try to handle frames in getImage

  • Loading branch information...
1 parent 3f86c3c commit c58eec1477cbafb78cb28ae552064417cfce61c3 Blixt committed Mar 1, 2014
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/assetsmanager.js
View
6 lib/assetsmanager.js
@@ -108,15 +108,13 @@ AssetsManager.prototype.getBlobURL = function (path, callback) {
* event will be emitted.
*/
AssetsManager.prototype.getImage = function (path) {
- // Example path: "/directory/image.png:frame?hueshift=60?fade=ffffff=0.1"
+ // Example path: "/directory/image.png?hueshift=60?fade=ffffff=0.1"
if (path in this._imageCache) return this._imageCache[path];
// Extract image operations.
var ops = path.split('?');
- // Extract the path (and potentially frame) segment.
- var pathAndFrame = ops.shift().split(':');
// Get the plain path to the image file.
- var filePath = pathAndFrame[0];
+ var filePath = ops.shift();
// If the image is not in the cache, load it and trigger an "images" event
// when it's done.

0 comments on commit c58eec1

Please sign in to comment.
Something went wrong with that request. Please try again.