Skip to content

Commit

Permalink
Fixed bug that caused only the first occurrences of the same CssImage…
Browse files Browse the repository at this point in the history
… to be sprited.
  • Loading branch information
papandreou committed Jan 2, 2012
1 parent 173367b commit fda4a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ module.exports = function () {
imageInfosById: {}
};
}
var imageInfo = spriteGroup[asset.id],
var imageInfo = spriteGroup.imageInfosById[asset.id],
padding = calculateSpritePadding(spriteInfo.padding);
if (!imageInfo) {
imageInfo = spriteGroup.imageInfosById[asset.id] = {
Expand Down

0 comments on commit fda4a0c

Please sign in to comment.