Permalink
Browse files

Various jshint fixes.

  • Loading branch information...
1 parent 5f3d903 commit 86c7313512c8c144add5e4b01fa98dcf227e9a41 @papandreou papandreou committed Dec 11, 2012
Showing with 10 additions and 12 deletions.
  1. +10 −12 lib/spriteBackgroundImages.js
@@ -92,7 +92,7 @@ function extractInfoFromCssRule(cssRule, propertyNamePrefix) {
}
}
return info;
-};
+}
module.exports = function () {
@@ -103,7 +103,9 @@ module.exports = function () {
}
// Waiting for https://github.com/LearnBoost/node-canvas/issues/52
- var cairoVersion = Canvas.cairoVersion.split(".").map(function (str) {return parseInt(str, 10);});
+ var cairoVersion = Canvas.cairoVersion.split(".").map(function (str) {
+ return parseInt(str, 10);
+ });
if (cairoVersion[0] < 1 || cairoVersion[1] < 10) {
console.warn("assetgraph-sprite: Cannot create sprites due to missing canvas.getContext('2d').drawImage() support. Please compile node-canvas with Cairo version 1.10.0 or above.");
return cb();
@@ -246,7 +248,7 @@ module.exports = function () {
assetGraph.addRelation(relation, 'last');
relation.refreshHref();
['selector-for-group', 'packer', 'image-format', 'background-color', 'important'].forEach(function (propertyName) {
- spriteGroup.placeHolder.cssRule.style.removeProperty('-sprite-' + propertyName);
+ spriteGroup.placeHolder.cssRule.style.removeProperty('-sprite-' + propertyName);
});
}
imageInfos.forEach(function (imageInfo) {
@@ -284,11 +286,9 @@ module.exports = function () {
}
}
- style.setProperty('background-position',
- offsets.map(function (item) {
- return item ? -item + 'px' : '0';
- }).join(' '),
- backgroundPositionPriority);
+ style.setProperty('background-position', offsets.map(function (item) {
+ return item ? -item + 'px' : '0';
+ }).join(' '), backgroundPositionPriority);
['group', 'padding', 'no-group-selector', 'important'].forEach(function (propertyName) {
style.removeProperty('-sprite-' + propertyName);
});
@@ -316,12 +316,10 @@ module.exports = function () {
});
});
callback();
- })
- ['catch'](callback);
+ })['catch'](callback);
})
.seq(function () {
cb();
- })
- ['catch'](cb);
+ })['catch'](cb);
};
};

0 comments on commit 86c7313

Please sign in to comment.