Backtrack on invalid zoom. Fixes #290

This commit is contained in:
Tom MacWright 2013-08-09 19:58:52 -04:00
parent b18f162d87
commit 2ead8dafa2

View File

@ -596,6 +596,9 @@ carto.Parser = function Parser(env) {
(op = $(this.entities.comparison)) &&
(val = $(this.entities.variable) || $(this.entities.dimension)) && $(']')) {
return new tree.Zoom(op, val, memo);
} else {
// backtrack
restore();
}
},