lemonadejs
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -382,7 +382,10 @@ /** | ||
} else if (k[i] == '@bind') { | ||
var f = function(a, b) { | ||
// Update val | ||
this.state[b] = getAttribute(a); | ||
// Refresh bound elements | ||
dispatch.call(this, b); | ||
}.bind(this, element, prop); | ||
// Onchange event for the element | ||
element.addEventListener('input', function() { | ||
lemon.state[prop] = getAttribute(this); | ||
dispatch.call(lemon, prop); | ||
}); | ||
element.addEventListener('input', f); | ||
// Way back | ||
@@ -389,0 +392,0 @@ create.call(this, element, { v:attr[k[i]] }, 'value'); |
@@ -22,3 +22,3 @@ { | ||
"types": "dist/lemonade.d.ts", | ||
"version": "2.3.1" | ||
"version": "2.3.2" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
38230
6
0
760