From 812db6af1579eb2fe85da6f32f70ad7453952ffb Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Mon, 14 Mar 2016 19:00:26 -0700 Subject: [PATCH] Call registered no prototype. --- src/lib/base.html | 2 +- src/lib/style-util.html | 2 +- src/standard/styling.html | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/lib/base.html b/src/lib/base.html index d7d02c5e43..5c8ecc3aa0 100644 --- a/src/lib/base.html +++ b/src/lib/base.html @@ -54,7 +54,7 @@ proto._registerLazyFeatures(); } // registration extension point - this._doBehavior('registered'); + proto._doBehavior('registered'); } }, diff --git a/src/lib/style-util.html b/src/lib/style-util.html index b429e93b5e..16dc0c7fbe 100644 --- a/src/lib/style-util.html +++ b/src/lib/style-util.html @@ -99,7 +99,7 @@ // insert a comment node as a styling position placeholder. applyStylePlaceHolder: function(moniker) { - var placeHolder = document.createComment(' polymer element ' + + var placeHolder = document.createComment(' Shady DOM styles for ' + moniker + ' '); var after = this.__lastHeadApplyNode ? this.__lastHeadApplyNode.nextSibling : null; diff --git a/src/standard/styling.html b/src/standard/styling.html index 6e9cdaef64..13373fbded 100644 --- a/src/standard/styling.html +++ b/src/standard/styling.html @@ -70,10 +70,6 @@ // keep track of style when in document scope (polyfill) so we can // attach property styles after it. if (!nativeShadow) { - // remove old scope style (comment node) when it's not needed. - if (this._scopeStyle) { - this._scopeStyle.parentNode.removeChild(this._scopeStyle); - } this._scopeStyle = style; } }