fastjs-team / core

Fastjs is a useful, lightweight JavaScript library for any types of project.
https://fastjs.dev
MIT License
351 stars 39 forks source link

Bug: FastjsBind trig error #12

Closed xiaodong2008 closed 1 year ago

xiaodong2008 commented 1 year ago

Describe the bug Interval need to run 2 time to trig Proxy.set

=== Error Code ===

import fastjsBind from "@/fastjs/src/fastjsBind";

let obj = {
    time: Date(),
}

setInterval(() => {
    obj = fastjsBind("innerHTML", "time", selecter(".fastjsBind_showDate"));
    obj.time = Date();
}, 1000)
xiaodong2008 commented 1 year ago

This bug has been fix in main - 1fd04774eec74bfa1e7de47df579b6f9850934e6