sproutjs-core 1.3.1 → 1.4.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sproutjs-core",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "keywords": [],
5
5
  "author": "",
6
6
  "license": "ISC",
package/sprout-core.js CHANGED
@@ -617,8 +617,9 @@ function getReactiveSlotClass(ReactiveElementClass) {
617
617
  children.forEach(function (slotChildElement) {
618
618
  var _if = slotChildElement.getAttribute('_if');
619
619
  if (_if) {
620
- var expectedValue = Boolean(_if === "true");
621
- if (stateValue == expectedValue) {
620
+ var expectedValue;
621
+ if (_if === "true") expectedValue = Boolean(_if === "true");else if (_if === "false") expectedValue = Boolean(_if === "false");else if (!isNaN(Number(_if))) expectedValue = Number(_if);else expectedValue = _if;
622
+ if (stateValue === expectedValue) {
622
623
  nodesToAssign.push(slotChildElement);
623
624
  }
624
625
  }