We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
_elems()
Test case
it('should use difference caches for elem mods', function() { var Block = bemDom.declBlock('block'); rootNode = createDomNode({ block : 'block', content : [ { elem : 'elem', elemMods : { m1 : true } }, { elem : 'elem', elemMods : { m2 : true } }, { elem : 'elem', elemMods : { m2 : true } }, { elem : 'elem' }, ] }); block = rootNode.bem(Block); // Expected: 1, Actual: 1 block._elems({ elem : 'elem', modName : 'm1' }).size().should.be.equal(1); // Expected: 2, Actual: 1 block._elems({ elem : 'elem', modName : 'm2' }).size().should.be.equal(2); // Expected: 4, Actual: 1 block._elems('elem').size().should.be.equal(4); });
CodePen https://codepen.io/belozer/pen/eLYVPK?editors=0012
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Test case
CodePen https://codepen.io/belozer/pen/eLYVPK?editors=0012
The text was updated successfully, but these errors were encountered: