Hi, I am wondering, whether we can add multiple fixtures using affix?
Closed this issue · 2 comments
chineseneo commented
For example, what if I want to add html like:
<div id="test">
<div id="test1"></div>
<div id="test2"></div>
</div>
Currently if I call affix multipe times like
affix('div#test div#test1')
affix('div#test div#test2')
Then I will get only
<div id="test">
<div id="test1"></div>
</div>
Maybe the affix method should be able to detect the save id, and add something to the existing fixture.
also maybe affix should support css selectors like
affix('div#test div#test1, div#test div#test2')
What do you think?
searls commented
This should work fine already: affix('#test #test1+#test2')
(specifying "div" is not necessary, since it's the default element created)
chineseneo commented
Oh, this is cool! Thanks man!