Comparing version 0.4.19 to 0.4.20
{ | ||
"name": "more-css", | ||
"version": "0.4.19", | ||
"version": "0.4.20", | ||
"description": "a css pre-compiler & agressive compressor", | ||
@@ -5,0 +5,0 @@ "maintainers": [ |
@@ -151,3 +151,3 @@ var CssLexer = require('./lexer/CssLexer'), | ||
for(var i = first; i <= other; i++) { | ||
if(/::-ms-/.test(node[i].s2s)) { | ||
if(node[i].s2s.indexOf(':-ms-') > -1) { | ||
return false; | ||
@@ -154,0 +154,0 @@ } |
@@ -358,2 +358,3 @@ var Class = require('../util/Class'), | ||
if(this.look.type() == Token.ID) { | ||
outer: | ||
for(var i = this.index; i < this.length; i++) { | ||
@@ -364,10 +365,20 @@ var token = this.tokens[i]; | ||
node.add(this.style(true)); | ||
break; | ||
} | ||
else if(token.content() == ';' || token.content() == '}') { | ||
node.add(this.extend(true)); | ||
for(var j = i; j < this.length; j++) { | ||
token = this.tokens[j]; | ||
if(!S[token.type()]) { | ||
if(token.type() == Token.ID) { | ||
continue; | ||
} | ||
else if(token.content() == ';' || token.content() == '}') { | ||
node.add(this.extend(true)); | ||
break outer; | ||
} | ||
else { | ||
node.add(this.styleset()); | ||
break outer; | ||
} | ||
} | ||
} | ||
else { | ||
node.add(this.styleset()); | ||
} | ||
break; | ||
} | ||
@@ -374,0 +385,0 @@ } |
@@ -152,3 +152,3 @@ define(function(require, exports) { | ||
for(var i = first; i <= other; i++) { | ||
if(/::-ms-/.test(node[i].s2s)) { | ||
if(node[i].s2s.indexOf(':-ms-') > -1) { | ||
return false; | ||
@@ -155,0 +155,0 @@ } |
@@ -359,2 +359,3 @@ define(function(require, exports, module) { | ||
if(this.look.type() == Token.ID) { | ||
outer: | ||
for(var i = this.index; i < this.length; i++) { | ||
@@ -365,10 +366,20 @@ var token = this.tokens[i]; | ||
node.add(this.style(true)); | ||
break; | ||
} | ||
else if(token.content() == ';' || token.content() == '}') { | ||
node.add(this.extend(true)); | ||
for(var j = i; j < this.length; j++) { | ||
token = this.tokens[j]; | ||
if(!S[token.type()]) { | ||
if(token.type() == Token.ID) { | ||
continue; | ||
} | ||
else if(token.content() == ';' || token.content() == '}') { | ||
node.add(this.extend(true)); | ||
break outer; | ||
} | ||
else { | ||
node.add(this.styleset()); | ||
break outer; | ||
} | ||
} | ||
} | ||
else { | ||
node.add(this.styleset()); | ||
} | ||
break; | ||
} | ||
@@ -375,0 +386,0 @@ } |
Sorry, the diff of this file is not supported yet
430994
10027