sproutjs-core 2.7.0 → 2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sproutjs-core",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "keywords": [],
5
5
  "author": "",
6
6
  "license": "ISC",
package/sprout-core.js CHANGED
@@ -845,14 +845,14 @@ function extendElementClassWithReactiveElementClass(elementClass) {
845
845
  _step;
846
846
  try {
847
847
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
848
- var _attrName = _step.value;
849
- var attrValue = this.getAttribute(_attrName);
848
+ var attrName = _step.value;
849
+ var attrValue = this.getAttribute(attrName);
850
850
  // This also resolves "State attributes"
851
- this.initialSetAttribute(_attrName, attrValue);
851
+ this.initialSetAttribute(attrName, attrValue);
852
852
 
853
853
  // Save "Command attributes"
854
- if (_attrName.indexOf('_') === 0) {
855
- var command = _attrName.substring(1);
854
+ if (attrName.indexOf('_') === 0) {
855
+ var command = attrName.substring(1);
856
856
  commands.push({
857
857
  command: command,
858
858
  args: attrValue
@@ -1046,11 +1046,11 @@ function extendElementClassWithReactiveElementClass(elementClass) {
1046
1046
  }
1047
1047
  }
1048
1048
  var stateProp = attributeValue;
1049
- var _attrName2 = attributeName.substring(1);
1050
- if (_attrName2 === "textContent") {
1049
+ var attrName = attributeName.substring(1);
1050
+ if (attrName === "textContent") {
1051
1051
  this.initialSetText(stateProp);
1052
1052
  } else {
1053
- setStateAttribute.call(this, _attrName2, stateProp);
1053
+ setStateAttribute.call(this, attrName, stateProp);
1054
1054
  }
1055
1055
  } else {
1056
1056
  if (isPropAttr) {
@@ -1064,7 +1064,7 @@ function extendElementClassWithReactiveElementClass(elementClass) {
1064
1064
  var propValue = host.getAttribute(propName);
1065
1065
  valueToSet = propValue;
1066
1066
  }
1067
- if (attrName === "textContent") {
1067
+ if (attributeName === "textContent") {
1068
1068
  this.initialSetText(valueToSet);
1069
1069
  } else {
1070
1070
  setAttribute.call(this, attributeName, valueToSet);