Skip to content

Commit

Permalink
Added FIXME and missing semicolon.
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Jun 12, 2012
1 parent 45abac2 commit b562265
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/transforms/spriteBackgroundImages.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,9 @@ module.exports = function () {
];

if (incomingRelation.cssRule.style['background-position']) {
// FIXME: Silently ignores other units than px
var positions = incomingRelation.cssRule.style['background-position'].split(' ').map(function (item) {
return parseInt(item, 10)
return parseInt(item, 10);
});

if (positions.length !== 2 || isNaN(positions[0]) || isNaN(positions[1])) {
Expand Down

0 comments on commit b562265

Please sign in to comment.