1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-29 20:21:14 +03:00

JSHint :-|

This commit is contained in:
deepsweet
2012-10-12 22:36:12 +03:00
parent b83238acf1
commit 43d716296a
6 changed files with 12 additions and 14 deletions

View File

@ -26,12 +26,12 @@ exports.removeViewBox = function(item, params) {
item.hasAttr('height')
) {
var match;
var match = item.attr('viewBox').value.match(regViewBox);
if (match = item.attr('viewBox').value.match(regViewBox)) {
if (match) {
if (
item.attr('width').value == match[1] &&
item.attr('height').value == match[2]
item.attr('width').value === match[1] &&
item.attr('height').value === match[2]
) {
item.removeAttr('viewBox');
}