Skip to content

Commit

Permalink
Backtrack on invalid zoom. Fixes less#290
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw committed Aug 9, 2013
1 parent b18f162 commit 2ead8da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/carto/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
},

Expand Down

0 comments on commit 2ead8da

Please sign in to comment.