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

add a remove method to unset a declaration block from a list #33

Merged
merged 1 commit into from Dec 12, 2011
Merged

add a remove method to unset a declaration block from a list #33

merged 1 commit into from Dec 12, 2011

Conversation

docteurklein
Copy link
Contributor

No description provided.

sabberworm added a commit that referenced this pull request Dec 12, 2011
add a remove method to unset a declaration block from a list
@sabberworm sabberworm merged commit 64b7582 into MyIntervals:master Dec 12, 2011
sabberworm added a commit that referenced this pull request Dec 12, 2011
@sabberworm
Copy link
Contributor

I had to modify your code a little bit: not all elements in a CSSList are CSSDeclarationBlocks and therefore not all have a method named getSelectors(). In addition, users might want to remove elements other than declaration blocks from the list. To get your desired behaviour, use the new method removeDeclarationBlockBySelector. You may pass a string, an array of strings, a CSSSelector, an array of CSSSelectors or a CSSDeclarationBlock whose selector will be used.

@docteurklein
Copy link
Contributor Author

thanks a lot! It was a quick and dirty fix.

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

Successfully merging this pull request may close these issues.

None yet

2 participants