Stubbing out assert, trying to get higher-level stylesheets
This commit is contained in:
parent
a49cc53e79
commit
75c3f5822b
@ -1,5 +1,7 @@
|
||||
(function(tree) {
|
||||
var assert = require('assert');
|
||||
var assert = require('assert') || {
|
||||
ok: function() { }
|
||||
};
|
||||
|
||||
tree.Definition = function Definition(selector, rules) {
|
||||
this.elements = selector.elements;
|
||||
|
@ -17,11 +17,13 @@
|
||||
};
|
||||
(new carto.Parser(parse_env)).parse(style,
|
||||
function(err, ruleset) {
|
||||
for (var i in ruleset.rules) {
|
||||
for (var j in ruleset.rules[i].rules) {
|
||||
document.getElementById('output').innerHTML += ruleset.rules[i].rules[j].eval(parse_env).toXML(parse_env) + ' ';
|
||||
}
|
||||
}
|
||||
var definition = ruleset.toList(parse_env);
|
||||
console.log(definition);
|
||||
// for (var i in ruleset.rules) {
|
||||
// for (var j in ruleset.rules[i].rules) {
|
||||
// document.getElementById('output').innerHTML += ruleset.rules[i].rules[j].eval(parse_env).toXML(parse_env) + ' ';
|
||||
// }
|
||||
// }
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user