You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 22, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 22, 2022. It is now read-only.
@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.
Activity
gdude2002 commentedon Mar 5, 2014
Removing the 10 from the function here does solve the problem, but why?
rcleozier commentedon Sep 15, 2014
Bump... Having the same exact issue
seawolff commentedon Oct 28, 2014
Same issue here, even unwatching after first iteration causes a complete crash. In Chrome 38 in case it's useful.
gdude2002 commentedon Oct 28, 2014
I'm not hopeful that the dev will respond here, but please remember to post your code, @rcleozier and @seawolff
seawolff commentedon Oct 29, 2014
@gdude2002 Here is my code. It's abbreviated and in CoffeeScript though:
However to reproduce simply watch a bound array on an object and push data into it.
melanke commentedon Oct 31, 2014
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
seawolff commentedon Nov 13, 2014
@melanke yeah, same. I'll get a PR open ASAP