Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bem decl subtract: Работа с обоими форматами деклараций.

  • Loading branch information...
commit 44774c7304b9300487c7e2ef70f04b9b7dd7b859 1 parent f0fadb3
@veged veged authored
Showing with 4 additions and 3 deletions.
  1. +3 −2 lib/commands/decl/subtract.js
  2. +1 −1  package.json
View
5 lib/commands/decl/subtract.js
@@ -20,11 +20,12 @@ exports.OptParse = function() {
.end()
.act(function(opts, args) {
var deps1 = new deps.Deps(),
- res = deps1.parse(opts.declaration.shift().blocks),
+ decl1 = opts.declaration.shift(),
+ res = deps1.parse(decl1.blocks || decl1.deps),
deps2, decl2;
while(decl2 = opts.declaration.shift()) {
deps2 = new deps.Deps();
- deps2.parse(decl2.blocks);
+ deps2.parse(decl2.blocks || decl2.deps);
deps1.subtract(deps2);
}
View
2  package.json
@@ -1,7 +1,7 @@
{
"name" : "bem",
"description" : "BEM Tools",
- "version" : "0.0.7",
+ "version" : "0.0.8",
"homepage" : "http://github.com/bem/bem-tools",
"author" : {
"name": "Sergey Berezhnoy",
Please sign in to comment.
Something went wrong with that request. Please try again.