sproutjs-core 2.7.0 → 2.8.0
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 +1 -1
- package/sprout-core.js +9 -9
- package/sprout-core.js.map +1 -1
- package/sprout-core.min.js +1 -1
- package/sprout-core.min.js.map +1 -1
- package/sprout-core.strict.js +9 -9
- package/sprout-core.strict.js.map +1 -1
- package/sprout-core.strict.min.js +1 -1
- package/sprout-core.strict.min.js.map +1 -1
package/package.json
CHANGED
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
|
|
849
|
-
var attrValue = this.getAttribute(
|
|
848
|
+
var attrName = _step.value;
|
|
849
|
+
var attrValue = this.getAttribute(attrName);
|
|
850
850
|
// This also resolves "State attributes"
|
|
851
|
-
this.initialSetAttribute(
|
|
851
|
+
this.initialSetAttribute(attrName, attrValue);
|
|
852
852
|
|
|
853
853
|
// Save "Command attributes"
|
|
854
|
-
if (
|
|
855
|
-
var command =
|
|
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
|
|
1050
|
-
if (
|
|
1049
|
+
var attrName = attributeName.substring(1);
|
|
1050
|
+
if (attrName === "textContent") {
|
|
1051
1051
|
this.initialSetText(stateProp);
|
|
1052
1052
|
} else {
|
|
1053
|
-
setStateAttribute.call(this,
|
|
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 (
|
|
1067
|
+
if (attributeName === "textContent") {
|
|
1068
1068
|
this.initialSetText(valueToSet);
|
|
1069
1069
|
} else {
|
|
1070
1070
|
setAttribute.call(this, attributeName, valueToSet);
|