vaderjs 1.3.3-6722242 → 1.3.3-7722242

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/vader.js +3 -5
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "vaderjs",
3
3
  "description": "A Reactive library aimed to helping you build reactive applications inspired by react.js",
4
4
  "module": "vader.js",
5
- "version": "1.3.3-6722242",
5
+ "version": "1.3.3-7722242",
6
6
  "bin": {
7
7
  "vader": "./vader.js"
8
8
  },
package/vader.js CHANGED
@@ -501,12 +501,10 @@ function Compiler(func, file) {
501
501
  } else if (isWithinComponent && prop.includes('=')) {
502
502
 
503
503
  if (prop.startsWith('$=')) {
504
- let old = prop
505
- let match = prop.replace(/\$\s*=\s*\{\s*\{\s*([^]*?)\s*\}\s*\}/gs, '$1')
506
- match = match.replace('$:', '$_ternary:')
504
+ let old = prop
505
+ prop = prop.replace(/\$\s*=\s*\{\s*\{\s*([^]*?)\s*\}\s*\}/gs, '$1')
507
506
  component = component.replace(old, '')
508
- componentAttributes = componentAttributes.replace(old, match)
509
-
507
+ componentAttributes = componentAttributes.replace(prop, '')
510
508
  $_ternaryprops.push(prop)
511
509
 
512
510
  }