Skip to content

Commit

Permalink
Merge branch 'master' into shady-linked
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Dec 7, 2015
2 parents dcbafbf + bab847a commit 3403141
Show file tree
Hide file tree
Showing 28 changed files with 778 additions and 452 deletions.
12 changes: 4 additions & 8 deletions src/lib/css-parse.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

/*
Extremely simple css parser. Intended to be not more than what we need
and definitely not necessarly correct =).
and definitely not necessarily correct =).
*/
Polymer.CssParse = (function() {

var api = {
return {
// given a string of css, return a simple rule tree
parse: function(text) {
text = this._clean(text);
Expand All @@ -31,7 +31,7 @@
_lex: function(text) {
var root = {start: 0, end: text.length};
var n = root;
for (var i=0, s=0, l=text.length; i < l; i++) {
for (var i=0, l=text.length; i < l; i++) {
switch (text[i]) {
case this.OPEN_BRACE:
//console.group(i);
Expand Down Expand Up @@ -123,7 +123,7 @@
}
}
}
// emit rule iff there is cssText
// emit rule if there is cssText
if (cssText) {
if (node.selector) {
text += node.selector + ' ' + this.OPEN_BRACE + '\n';
Expand Down Expand Up @@ -185,10 +185,6 @@

};


// exports
return api;

})();

</script>

0 comments on commit 3403141

Please sign in to comment.