1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-31 07:44:22 +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.cleanupEnableBackground = function(item, params) {
item.hasAttr('height')
) {
var match;
var match = item.attr('enable-background').value.match(regEnableBackground);
if (match = item.attr('enable-background').value.match(regEnableBackground)) {
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]
) {
if (item.isElem('svg')) {
item.removeAttr('enable-background');