-
Notifications
You must be signed in to change notification settings - Fork 48
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
BEMXJST: extend() mode fix #180 #363
Conversation
@@ -488,6 +484,10 @@ Tree.prototype.prependContent = function prependContent() { | |||
.match(new AddMatch('prependContent', this.refs)); | |||
}; | |||
|
|||
Tree.prototype.wrap = function wrap() { | |||
return this.def.apply(this, arguments).match(new WrapMatch(this.refs)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
позиция этой декларации в файле разве что-то меняет?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zxqfox меняет моё отношение к файлу. Порядок хочу. Чтобы wrap, extend, replace были рядом.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
почему ты не хочешь отдельно делать стилические правки, а отдельно функциональные? религия?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zxqfox потому что не вижу смысла в такой бюрократии.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ты эту правку мог влить отдельно, поскольку она никак не влияет на бизнес логику, но «чтобы не разводить бюрократию» она теперь висит здесь и только путает. Это крайне нелогично.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please take a look at #180 (comment)
@@ -540,6 +541,33 @@ Result of BEMHTML templating: | |||
<div class="wrap"><div class="quote">Docendo discimus</div></div> | |||
``` | |||
|
|||
#### extend | |||
|
|||
`extend` mode allows you extend current BEMJSON node. Notice what current |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you to extend
what -> that
will be not -> will not be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
f386271
to
772c1e6
Compare
@tadatuta can we fix |
772c1e6
to
c8a841a
Compare
@tadatuta updated. Now |
c8a841a
to
8b10556
Compare
Such command |
— check |
— check several |
8b10556
to
159c425
Compare
1 similar comment
159c425
to
ab9d3ca
Compare
Fix #180