Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master' into upgrade-mocka
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddewie committed Oct 14, 2020
2 parents fe53195 + 8d79a4f commit 63b6ea7
Show file tree
Hide file tree
Showing 4 changed files with 486 additions and 762 deletions.
2 changes: 1 addition & 1 deletion lib/carto/tree/rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ tree.Rule.prototype.updateID = function() {
};

tree.Rule.prototype.toString = function() {
return '[' + tree.Zoom.toString(this.zoom) + '] ' + this.name + ': ' + this.value;
return '[' + (this.zoom ? this.zoom.toString() : (new tree.Zoom()).toString()) + '] ' + this.name + ': ' + this.value;
};

tree.Rule.prototype.validate = function (env) {
Expand Down
Loading

0 comments on commit 63b6ea7

Please # to comment.