Skip to content

Commit

Permalink
spacing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Feb 6, 2017
1 parent ca7dbb8 commit 5030c1b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/lib/base.html
Expand Up @@ -64,7 +64,7 @@
},

createdCallback: function() {
if (Polymer.Settings.disableUpgradeEnabled) {
if (settings.disableUpgradeEnabled) {
if (this.hasAttribute('disable-upgrade')) {
this._propertySetter = disableUpgradePropertySetter;
this.__data__ = {};
Expand Down Expand Up @@ -302,7 +302,12 @@
Polymer.BaseDescriptors = {};

var disableUpgradePropertySetter;
if (Polymer.Settings.disableUpgradeEnabled) {

if (settings.disableUpgradeEnabled) {

disableUpgradePropertySetter = function(property, value) {
this.__data__[property] = value;
}

var origAttributeChangedCallback = Polymer.Base.attributeChangedCallback;
Polymer.Base.attributeChangedCallback = function(name, oldValue, newValue) {
Expand All @@ -314,10 +319,6 @@
origAttributeChangedCallback.call(this, name, oldValue, newValue);
}

disableUpgradePropertySetter = function(property, value) {
this.__data__[property] = value;
}

}

if (window.CustomElements) {
Expand Down

0 comments on commit 5030c1b

Please sign in to comment.