Skip to content

Commit

Permalink
Merge pull request #39 from grahambates/master
Browse files Browse the repository at this point in the history
Proposed fix for issue #37
  • Loading branch information
Adam Bradley committed Dec 12, 2012
2 parents 919d04f + 0f682f0 commit a9c3ab9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions foresight.js
Expand Up @@ -756,6 +756,9 @@
newSrc = img[ DEFAULT_SRC ].replace( findValue, img[ APPLIED_IMAGE_SET_ITEM ][ URI_REPLACE ] ),
formatReplace = [ REQUEST_WIDTH, REQUEST_HEIGHT, SCALE, SCALE_ROUNDED ];

img[ SCALE ] = img[ APPLIED_IMAGE_SET_ITEM ][ SCALE ];
img[ SCALE_ROUNDED ] = img[ APPLIED_IMAGE_SET_ITEM ][ SCALE_ROUNDED ];

// loop through all the possible format keys and
// replace them with their respective value for this image
for ( f = 0; f < formatReplace.length; f++ ) {
Expand Down

0 comments on commit a9c3ab9

Please sign in to comment.