Skip to content

Commit

Permalink
Rename _mapRule to _mapRuleOntoParent
Browse files Browse the repository at this point in the history
Makes the function name much more explicit about its purpose
  • Loading branch information
dfreedm committed Feb 9, 2016
1 parent 10d2004 commit cd42595
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/style-extends.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
var rules = styleUtil.rulesForStyle(style);
var self = this;
styleUtil.forEachRule(rules, function(rule) {
self._mapRule(rule);
self._mapRuleOntoParent(rule);
if (rule.parent) {
var m;
while ((m = self.rx.EXTEND.exec(rule.cssText))) {
Expand All @@ -46,7 +46,7 @@
}, true);
},

_mapRule: function(rule) {
_mapRuleOntoParent: function(rule) {
if (rule.parent) {
var map = rule.parent.map || (rule.parent.map = {});
var parts = rule.selector.split(',');
Expand Down

0 comments on commit cd42595

Please sign in to comment.