Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicating the CSS classes #12

Open
kishorekrishnan opened this issue Mar 2, 2017 · 2 comments
Open

Duplicating the CSS classes #12

kishorekrishnan opened this issue Mar 2, 2017 · 2 comments

Comments

@kishorekrishnan
Copy link

Each time I click the extract button, it is appending duplicate of the already created CSS. Can this be fixed?

@kishorekrishnan
Copy link
Author

I rewrote the code like this and its working fine now:

function outputCSS( extractStyle ) {
outputStr = "";
outputArr.forEach( function( elem ) {
outputStr += elem.selector + '{' + (elem.style && extractStyle ? elem.style : '') + '}';
} );
return outputStr;
}

@rcaldous
Copy link

rcaldous commented Feb 6, 2018

@kishorekrishnan Why don't you submit a pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants