Open gdude2002 opened 10 years ago
Removing the 10 from the function here does solve the problem, but why?
Bump... Having the same exact issue
Same issue here, even unwatching after first iteration causes a complete crash. In Chrome 38 in case it's useful.
I'm not hopeful that the dev will respond here, but please remember to post your code, @rcleozier and @seawolff
@gdude2002 Here is my code. It's abbreviated and in CoffeeScript though:
class Validation
errors: []
constructor: (data) ->
# More code ...
@errors.push {code: data.errors.error.code, message: data.errors.error.message}
class Billing_Form
constructor: () ->
# data = data returned from ajax
validation = new Validation(data)
watch validation, "errors", callback = ->
console.log validation.errors
unwatch validation, "errors", callback #even with unwatch it will loop forever
return
However to reproduce simply watch a bound array on an object and push data into it.
Sorry guys, anything I can help you with? I am not currently working on Watch. Sorry about that, but any pull request will be appreciated
@melanke yeah, same. I'll get a PR open ASAP
I'm using Node.JS version 0.10.26 with Watch.JS stored locally instead of using NPM (as the NPM version doesn't work).
When I push to an array within an object, Watch.JS seems to get stuck in an infinite loop.
Results in the following output..
This loops until it's killed. Any ideas?