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

Inconsistency in isEqual methods #25

Open
Yeti-or opened this issue Mar 8, 2017 · 0 comments
Open

Inconsistency in isEqual methods #25

Yeti-or opened this issue Mar 8, 2017 · 0 comments

Comments

@Yeti-or
Copy link
Member

Yeti-or commented Mar 8, 2017

https://runkit.com/yeti-or/bem-entity-vc-cell

const BE = require('@bem/entity-name');
const BC = require('@bem/cell');

const button_disabled = BE.create({block: 'button', modName: 'disabled'});
const b_d = BC.create(button_disabled);

console.log(button_disabled.isEqual(b_d)); // is this okay? I think yes
console.log(b_d.isEqual(button_disabled)); // but then why this throws?
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

1 participant