Comparing version 0.3.2 to 0.3.3
{ | ||
"name": "more-css", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "a css pre-compiler & agressive compressor", | ||
@@ -5,0 +5,0 @@ "maintainers": [ |
@@ -51,3 +51,8 @@ var CssLexer = require('./lexer/CssLexer'), | ||
k = leaves[0].leaves().content().slice(1), | ||
v = leaves[2].leaves().content(); | ||
v = ''; | ||
leaves[2].leaves().forEach(function(leaf, i) { | ||
var token = leaf.leaves(); | ||
if(i) v += ' '; | ||
v += token.content(); | ||
}); | ||
varHash[k] = v; | ||
@@ -54,0 +59,0 @@ } |
@@ -248,3 +248,3 @@ var Class = require('../util/Class'), | ||
} | ||
node.add(this.match([Token.STRING, Token.NUMBER])); | ||
node.add(this.value()); | ||
node.add(this.match(';')); | ||
@@ -342,3 +342,3 @@ return node; | ||
}, | ||
value: function(key) { | ||
value: function() { | ||
var node = new Node(Node.VALUE); | ||
@@ -345,0 +345,0 @@ if(!this.look) { |
@@ -52,3 +52,8 @@ define(function(require, exports) { | ||
k = leaves[0].leaves().content().slice(1), | ||
v = leaves[2].leaves().content(); | ||
v = ''; | ||
leaves[2].leaves().forEach(function(leaf, i) { | ||
var token = leaf.leaves(); | ||
if(i) v += ' '; | ||
v += token.content(); | ||
}); | ||
varHash[k] = v; | ||
@@ -55,0 +60,0 @@ } |
@@ -249,3 +249,3 @@ define(function(require, exports, module) { | ||
} | ||
node.add(this.match([Token.STRING, Token.NUMBER])); | ||
node.add(this.value()); | ||
node.add(this.match(';')); | ||
@@ -343,3 +343,3 @@ return node; | ||
}, | ||
value: function(key) { | ||
value: function() { | ||
var node = new Node(Node.VALUE); | ||
@@ -346,0 +346,0 @@ if(!this.look) { |
Sorry, the diff of this file is not supported yet
414383
9573