We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e7c2a7 commit 9ef4386Copy full SHA for 9ef4386
OpenScript.js
@@ -1744,7 +1744,7 @@ var OpenScript = {
1744
* @param {...any} args
1745
* @returns
1746
*/
1747
- fire(...args) {
+ async fire(...args) {
1748
1749
for(let [k, component] of this.listeners){
1750
component.wrap(...args, this.signature);
@@ -1798,8 +1798,15 @@ var OpenScript = {
1798
set(target, prop, value) {
1799
1800
if(prop === "value") {
1801
+ let current = target.value;
1802
+ let nVal = value;
1803
- if(target.value === value) return true;
1804
+ if(typeof current === "object"){
1805
+ current = JSON.stringify(current);
1806
+ nVal = JSON.stringify(nVal);
1807
+ }
1808
+
1809
+ if(current === nVal) return true;
1810
1811
Reflect.set(...arguments);
1812
0 commit comments