Skip to content

Commit

Permalink
Comment on using the ast walker to replace selector
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Sep 22, 2016
1 parent 44e2946 commit 9658665
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/style-transformer.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@
var cssText = '';
var cssBuildType = element.__cssBuild;
var passthrough = settings.useNativeShadow || cssBuildType === 'shady';
var cb = callback;
var cb;
// use the style node visitor callback to update the selector
if (passthrough) {
var self = this;
//
cb = function(rule) {
rule.selector = self._slottedToContent(rule.selector);
if (callback) {
Expand All @@ -119,7 +119,7 @@
// static shimming work when a proper build exists.
cssText += (passthrough) ?
styleUtil.toCssText(rules, cb) :
this.css(rules, element.is, element.extends, cb,
this.css(rules, element.is, element.extends, callback,
element._scopeCssViaAttr) + '\n\n';
}
return cssText.trim();
Expand Down

0 comments on commit 9658665

Please sign in to comment.