Merge branch 'master' of github.com:mapbox/carto
This commit is contained in:
commit
5612291d71
@ -26,7 +26,8 @@ tree.Element.prototype.toString = function() {
|
||||
// classes.
|
||||
tree.Element.prototype.matches = function(id, classes) {
|
||||
return (classes.indexOf(this.value.replace(/^\./, '')) !== -1) ||
|
||||
(this.value.replace(/^#/, '') == id);
|
||||
(this.value.replace(/^#/, '') === id) ||
|
||||
(this.value === '*');
|
||||
};
|
||||
|
||||
})(require('carto/tree'));
|
||||
|
Loading…
Reference in New Issue
Block a user