Merge branch 'master' of github.com:mapbox/carto

This commit is contained in:
Tom MacWright 2011-02-07 15:22:53 -05:00
commit 5612291d71

View File

@ -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'));