Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 44774c7304b9300487c7e2ef70f04b9b7dd7b859 1 parent f0fadb3
Sergey Berezhnoy authored
5  lib/commands/decl/subtract.js
@@ -20,11 +20,12 @@ exports.OptParse = function() {
20 20
             .end()
21 21
         .act(function(opts, args) {
22 22
             var deps1 = new deps.Deps(),
23  
-                res = deps1.parse(opts.declaration.shift().blocks),
  23
+                decl1 = opts.declaration.shift(),
  24
+                res = deps1.parse(decl1.blocks || decl1.deps),
24 25
                 deps2, decl2;
25 26
             while(decl2 = opts.declaration.shift()) {
26 27
                 deps2 = new deps.Deps();
27  
-                deps2.parse(decl2.blocks);
  28
+                deps2.parse(decl2.blocks || decl2.deps);
28 29
                 deps1.subtract(deps2);
29 30
             }
30 31
 
2  package.json
... ...
@@ -1,7 +1,7 @@
1 1
 {
2 2
     "name" : "bem",
3 3
     "description" : "BEM Tools",
4  
-    "version" : "0.0.7",
  4
+    "version" : "0.0.8",
5 5
     "homepage" : "http://github.com/bem/bem-tools",
6 6
     "author" : {
7 7
         "name": "Sergey Berezhnoy",

0 notes on commit 44774c7

Please sign in to comment.
Something went wrong with that request. Please try again.